Fix compiler bugs and text_editor
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import b "second";
|
||||
|
||||
main :: proc(): int {
|
||||
a: int;
|
||||
b.cool_variable = &a;
|
||||
b.other_thing();
|
||||
return 0;
|
||||
}
|
||||
7
tests/accessing_variable_across_modules/second/second.lc
Normal file
7
tests/accessing_variable_across_modules/second/second.lc
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
cool_variable: *int;
|
||||
|
||||
other_thing :: proc(): int {
|
||||
a := 0;
|
||||
return a;
|
||||
}
|
||||
Reference in New Issue
Block a user