Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isGeneric (0.11 sec)

  1. src/go/types/expr.go

    func (check *Checker) nonGeneric(T *target, x *operand) {
    	if x.mode == invalid || x.mode == novalue {
    		return
    	}
    	var what string
    	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
    			}
    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

    func (check *Checker) nonGeneric(T *target, x *operand) {
    	if x.mode == invalid || x.mode == novalue {
    		return
    	}
    	var what string
    	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
    			}
    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