Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for collectTypeParams (0.18 sec)

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

    	case *Basic:
    		if !isValid(u) {
    			// error is reported elsewhere
    			return &emptyInterface
    		}
    	case *Interface:
    		if isTypeParam(bound) {
    			// error is reported in Checker.collectTypeParams
    			return &emptyInterface
    		}
    		ityp = u
    	}
    
    	// If we don't have an interface, wrap constraint into an implicit interface.
    	if ityp == nil {
    		ityp = NewInterfaceType(nil, []Type{bound})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. src/go/types/typeparam.go

    	case *Basic:
    		if !isValid(u) {
    			// error is reported elsewhere
    			return &emptyInterface
    		}
    	case *Interface:
    		if isTypeParam(bound) {
    			// error is reported in Checker.collectTypeParams
    			return &emptyInterface
    		}
    		ityp = u
    	}
    
    	// If we don't have an interface, wrap constraint into an implicit interface.
    	if ityp == nil {
    		ityp = NewInterfaceType(nil, []Type{bound})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top