- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for typecheck (0.11 sec)
-
src/cmd/compile/internal/types2/api_test.go
const src1 = ` package p var _ T ` _, err := typecheck(src1, &conf, nil) if err == nil || !strings.HasSuffix(err.Error(), " [go.dev/e/UndeclaredName]") { t.Errorf("src1: unexpected error: got %v", err) } // test case for a multi-line error const src2 = ` package p func f() int { return 0 } var _ = f(1, 2) ` _, err = typecheck(src2, &conf, nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 93.3K bytes - Viewed (0) -
src/go/types/api_test.go
const src1 = ` package p var _ T ` _, err := typecheck(src1, &conf, nil) if err == nil || !strings.HasSuffix(err.Error(), " [go.dev/e/UndeclaredName]") { t.Errorf("src1: unexpected error: got %v", err) } // test case for a multi-line error const src2 = ` package p func f() int { return 0 } var _ = f(1, 2) ` _, err = typecheck(src2, &conf, nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 94.2K bytes - Viewed (0) -
src/cmd/compile/internal/types/type.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 49.5K bytes - Viewed (0) -
src/go/types/expr.go
func newTarget(typ Type, desc string) *target { if typ != nil { if sig, _ := under(typ).(*Signature); sig != nil { return &target{sig, desc} } } return nil } // rawExpr typechecks expression e and initializes x with the expression // value or type. If an error occurred, x.mode is set to invalid. // If a non-nil target T is given and e is a generic function, // T is used to infer the type arguments for e.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 49.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/expr.go
func newTarget(typ Type, desc string) *target { if typ != nil { if sig, _ := under(typ).(*Signature); sig != nil { return &target{sig, desc} } } return nil } // rawExpr typechecks expression e and initializes x with the expression // value or type. If an error occurred, x.mode is set to invalid. // If a non-nil target T is given and e is a generic function, // T is used to infer the type arguments for e.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 51.7K bytes - Viewed (0)