go/types: enable disabled test for comma-ok expressions

This was fixed long ago but the test was not enabled.

For #8189.

Change-Id: Ia44ef752b6bf076f3e243d2d0db326a392a20193
Reviewed-on: https://go-review.googlesource.com/27310
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Robert Griesemer 2016-08-17 15:56:29 -07:00
parent 69371671c7
commit 17eee31020
1 changed files with 5 additions and 7 deletions

View File

@ -171,13 +171,11 @@ func TestTypesInfo(t *testing.T) {
`x.(int)`,
`(int, bool)`,
},
// TODO(gri): uncomment if we accept issue 8189.
// {`package p2; type mybool bool; var m map[string]complex128; var b mybool; func _() { _, b = m["foo"] }`,
// `m["foo"]`,
// `(complex128, p2.mybool)`,
// },
// TODO(gri): remove if we accept issue 8189.
{`package p2; var m map[string]complex128; var b bool; func _() { _, b = m["foo"] }`,
{`package p2a; type mybool bool; var m map[string]complex128; var b mybool; func _() { _, b = m["foo"] }`,
`m["foo"]`,
`(complex128, p2a.mybool)`,
},
{`package p2b; var m map[string]complex128; var b bool; func _() { _, b = m["foo"] }`,
`m["foo"]`,
`(complex128, bool)`,
},