Fix field resolution not resolving constant value properly

This commit is contained in:
Krzosa Karol
2024-06-10 08:45:58 +02:00
parent f8cf91ed2a
commit ff612d00ef
9 changed files with 66 additions and 39 deletions

11
tests/defer.txt Normal file
View File

@@ -0,0 +1,11 @@
a: char;
main :: proc(): int {
for i := 0; i < 4; i += 1 {
if i == 2 { break; }
string := &a;
defer *string = 1;
}
return 0;
}