Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for nonGeneric (0.09 sec)

  1. src/go/types/expr.go

    	if !allowGeneric {
    		check.nonGeneric(T, x)
    	}
    
    	check.record(x)
    
    	return kind
    }
    
    // If x is a generic type, or a generic function whose type arguments cannot be inferred
    // from a non-nil target T, nonGeneric reports an error and invalidates x.mode and x.typ.
    // Otherwise it leaves x alone.
    func (check *Checker) nonGeneric(T *target, x *operand) {
    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

    	if !allowGeneric {
    		check.nonGeneric(T, x)
    	}
    
    	check.record(x)
    
    	return kind
    }
    
    // If x is a generic type, or a generic function whose type arguments cannot be inferred
    // from a non-nil target T, nonGeneric reports an error and invalidates x.mode and x.typ.
    // Otherwise it leaves x alone.
    func (check *Checker) nonGeneric(T *target, x *operand) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
Back to top