Fix field resolution not resolving constant value properly
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import b "second";
|
||||
|
||||
main :: proc(): int {
|
||||
return b.A;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
A :: 0;
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user