Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for funcList (0.08 sec)

  1. src/go/types/expr.go

    	switch t := x.typ.(type) {
    	case *Alias, *Named:
    		if isGeneric(t) {
    			what = "type"
    		}
    	case *Signature:
    		if t.tparams != nil {
    			if enableReverseTypeInference && T != nil {
    				check.funcInst(T, x.Pos(), x, nil, true)
    				return
    			}
    			what = "function"
    		}
    	}
    	if what != "" {
    		check.errorf(x.expr, WrongTypeArgCount, "cannot use generic %s %s without instantiation", what, x.expr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/expr.go

    	switch t := x.typ.(type) {
    	case *Alias, *Named:
    		if isGeneric(t) {
    			what = "type"
    		}
    	case *Signature:
    		if t.tparams != nil {
    			if enableReverseTypeInference && T != nil {
    				check.funcInst(T, x.Pos(), x, nil, true)
    				return
    			}
    			what = "function"
    		}
    	}
    	if what != "" {
    		check.errorf(x.expr, WrongTypeArgCount, "cannot use generic %s %s without instantiation", what, x.expr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/parser.go

    			px.X = x
    			x = px
    		}
    		return x
    
    	case _Func:
    		pos := p.pos()
    		p.next()
    		_, ftyp := p.funcType("function type")
    		if p.tok == _Lbrace {
    			p.xnest++
    
    			f := new(FuncLit)
    			f.pos = pos
    			f.Type = ftyp
    			f.Body = p.funcBody()
    
    			p.xnest--
    			return f
    		}
    		return ftyp
    
    	case _Lbrack, _Chan, _Map, _Struct, _Interface:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
Back to top