Fix field resolution not resolving constant value properly
This commit is contained in:
5
tests/const_not_folding/main/test_unused.lc
Normal file
5
tests/const_not_folding/main/test_unused.lc
Normal file
@@ -0,0 +1,5 @@
|
||||
import b "second";
|
||||
|
||||
main :: proc(): int {
|
||||
return b.A;
|
||||
}
|
||||
1
tests/const_not_folding/second/second.lc
Normal file
1
tests/const_not_folding/second/second.lc
Normal file
@@ -0,0 +1 @@
|
||||
A :: 0;
|
||||
Reference in New Issue
Block a user