mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 00:52:18 +01:00
Check "i < j" when i's type refines j's type.
This commit is contained in:
1 parent
87dcd9ed55
commit
7367a382b2
4 files changed
+27
-8
No files matched your search
@@ -60,7 +60,10 @@ func TestCheck(t *testing.T) {
|
||||
|
||||
y = x as i32
|
||||
|
||||
for x > 0 {
|
||||
var i i32
|
||||
var j i32[0:8]
|
||||
|
||||
for i == j {
|
||||
}
|
||||
}
|
||||
`) + "\n"
|
||||
@@ -114,6 +117,8 @@ func TestCheck(t *testing.T) {
|
||||
want := [][2]string{
|
||||
{"a", "[4] u8"},
|
||||
{"b", "bool"},
|
||||
{"i", "i32"},
|
||||
{"j", "i32[0:8]"},
|
||||
{"x", "u8"},
|
||||
{"y", "i32"},
|
||||
{"z", "u64[:123]"},
|
||||
|
||||
Reference in new issue
Block a user