Propagate "x == constValue" in bounds checking.

This commit is contained in:
Nigel Tao committed 2017-06-10 11:53:50 +10:00
1 parent 793eb043a4
commit 70d62bc608
3 files changed
+43 -24

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ func TestCheck(t *testing.T) {
x = 0
x = 1 + (x * 0)
y = -(y * 0) - 1
y = -y - 1
y = this.i
b = not true