aboutsummaryrefslogtreecommitdiff
path: root/src/go/types/operand.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/types/operand.go')
-rw-r--r--src/go/types/operand.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/go/types/operand.go b/src/go/types/operand.go
index 1d0f5b80b6..c605cf781c 100644
--- a/src/go/types/operand.go
+++ b/src/go/types/operand.go
@@ -255,13 +255,13 @@ func (x *operand) assignableTo(check *Checker, T Type, reason *string) (bool, er
// x is an untyped value representable by a value of type T.
if isUntyped(Vu) {
if t, ok := Tu.(*Union); ok {
- return t.is(func(t Type, tilde bool) bool {
+ return t.is(func(t *term) bool {
// TODO(gri) this could probably be more efficient
- if tilde {
+ if t.tilde {
// TODO(gri) We need to check assignability
// for the underlying type of x.
}
- ok, _ := x.assignableTo(check, t, reason)
+ ok, _ := x.assignableTo(check, t.typ, reason)
return ok
}), _IncompatibleAssign
}