Files
lib_compiler/tests/regression_error_handling_field_access2.txt
2024-04-13 15:29:53 +02:00

27 lines
493 B
Plaintext

// #failed: resolve
Some_Struct :: struct {
item: int;
another_item: int;
}
main :: proc() {
ss: Some_Struct;
if ss.item {
{
// #error: undeclared identifier 'i'
a := ss.i;
// #error: undeclared identifier 'b'
ss.item = b - a;
}
}
@unused thing: Some_Struct;
// #error: undeclared identifier 'undeclared'
undeclared;
another_thing: Some_Struct;
// #error: very likely a bug, expression statement
another_thing;
}