Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for HasNil (0.21 sec)

  1. src/go/types/expr.go

    		if allString(x.typ) != allString(y.typ) {
    			return false
    		}
    		// Untyped nil can only convert to a type that has a nil.
    		if x.isNil() {
    			return hasNil(y.typ)
    		}
    		if y.isNil() {
    			return hasNil(x.typ)
    		}
    		// An untyped operand cannot convert to a pointer.
    		// TODO(gri) generalize to type parameters
    		if isPointer(x.typ) || isPointer(y.typ) {
    			return false
    		}
    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 allString(x.typ) != allString(y.typ) {
    			return false
    		}
    		// Untyped nil can only convert to a type that has a nil.
    		if x.isNil() {
    			return hasNil(y.typ)
    		}
    		if y.isNil() {
    			return hasNil(x.typ)
    		}
    		// An untyped operand cannot convert to a pointer.
    		// TODO(gri) generalize to type parameters
    		if isPointer(x.typ) || isPointer(y.typ) {
    			return false
    		}
    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