Check "b = not true".

This commit is contained in:
Nigel Tao committed 2017-05-12 16:03:35 +10:00
1 parent 5d51c6c42c
commit 0e59b05432
4 files changed
+56 -18

No files matched your search

+3
View File
@@ -21,9 +21,11 @@ func TestCheck(t *testing.T) {
var y i32 = 2
var z u64[:123]
var a [4]u8
var b bool
x = 0
y = -y
b = not true
y = x as i32
}
@@ -73,6 +75,7 @@ func TestCheck(t *testing.T) {
want := [][2]string{
{"a", "[4] u8"},
{"b", "bool"},
{"x", "u8"},
{"y", "i32"},
{"z", "u64[:123]"},