mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/types2: remove Config.InferFromConstraints flag
Constraint type inference is part of the proposed language. Use an internal flag to control the feayure for debugging. Change-Id: I7a9eaee92b5ffc23c25d9e68a729acc0d705e879 Reviewed-on: https://go-review.googlesource.com/c/go/+/306770 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
This commit is contained in:
parent
bce85b7011
commit
7d5c54eee4
6 changed files with 6 additions and 11 deletions
|
|
@ -36,7 +36,6 @@ func check2(noders []*noder) {
|
|||
// typechecking
|
||||
conf := types2.Config{
|
||||
GoVersion: base.Flag.Lang,
|
||||
InferFromConstraints: true,
|
||||
IgnoreLabels: true, // parser already checked via syntax.CheckBranches mode
|
||||
CompilerErrorMessages: true, // use error strings matching existing compiler errors
|
||||
Error: func(err error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue