Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 53 of 53 for TypeParam (0.12 sec)

  1. src/cmd/compile/internal/types2/builtins.go

    // applyTypeFunc returns nil.
    // If x is not a type parameter, the result is f(x).
    func (check *Checker) applyTypeFunc(f func(Type) Type, x *operand, id builtinId) Type {
    	if tp, _ := Unalias(x.typ).(*TypeParam); tp != nil {
    		// Test if t satisfies the requirements for the argument
    		// type and collect possible result types at the same time.
    		var terms []*Term
    		if !tp.is(func(t *term) bool {
    			if t == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/call.go

    		err.addf(nopos, "want %s", check.typesSummary(varTypes(params), sig.variadic))
    		err.report()
    		return
    	}
    
    	// collect type parameters of callee and generic function arguments
    	var tparams []*TypeParam
    
    	// collect type parameters of callee
    	n := sig.TypeParams().Len()
    	if n > 0 {
    		if !check.allowVersion(call.Pos(), go1_18) {
    			if iexpr, _ := call.Fun.(*syntax.IndexExpr); iexpr != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  3. src/go/types/call.go

    		err.addf(noposn, "want %s", check.typesSummary(varTypes(params), sig.variadic))
    		err.report()
    		return
    	}
    
    	// collect type parameters of callee and generic function arguments
    	var tparams []*TypeParam
    
    	// collect type parameters of callee
    	n := sig.TypeParams().Len()
    	if n > 0 {
    		if !check.allowVersion(call, go1_18) {
    			switch call.Fun.(type) {
    			case *ast.IndexExpr, *ast.IndexListExpr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
Back to top