Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 52 of 52 for typecheck (0.12 sec)

  1. src/go/types/builtins.go

    		}
    
    		x.mode = value
    		x.typ = NewPointer(universeByte)
    		if check.recordTypes() {
    			check.recordBuiltinType(call.Fun, makeSig(x.typ, Typ[String]))
    		}
    
    	case _Assert:
    		// assert(pred) causes a typechecker error if pred is false.
    		// The result of assert is the value of pred if there is no error.
    		// Note: assert is only available in self-test mode.
    		if x.mode != constant_ || !isBoolean(x.typ) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/builtins.go

    		}
    
    		x.mode = value
    		x.typ = NewPointer(universeByte)
    		if check.recordTypes() {
    			check.recordBuiltinType(call.Fun, makeSig(x.typ, Typ[String]))
    		}
    
    	case _Assert:
    		// assert(pred) causes a typechecker error if pred is false.
    		// The result of assert is the value of pred if there is no error.
    		// Note: assert is only available in self-test mode.
    		if x.mode != constant_ || !isBoolean(x.typ) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
Back to top