]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: remove (internal) exactUnification flag
authorRobert Griesemer <gri@golang.org>
Thu, 2 Feb 2023 04:13:03 +0000 (20:13 -0800)
committerGopher Robot <gobot@golang.org>
Thu, 2 Feb 2023 14:31:09 +0000 (14:31 +0000)
commit756a8ac91a7d26becb8f3c5c8e8fbdbae0eb77e2
treea7a2e5fd1b007acd4cff0352d9f4b962b72dc502
parent40a0986959167e7b82ae16a35a5dd2a347609eff
go/types, types2: remove (internal) exactUnification flag

Neither infer nor infer2 will correctly work if we require
exact unification. Remove the flag and simplify the respective
code.

Change-Id: I329f207f72b6d97fa076f27275481b754e55fecf
Reviewed-on: https://go-review.googlesource.com/c/go/+/464346
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/types2/unify.go
src/go/types/unify.go