Init new repository
This commit is contained in:
20
tests/regression_error_handling_field_access.txt
Normal file
20
tests/regression_error_handling_field_access.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
// #failed: resolve
|
||||
|
||||
Some_Struct :: struct {
|
||||
item: int;
|
||||
another_item: int;
|
||||
}
|
||||
|
||||
main :: proc() {
|
||||
|
||||
{
|
||||
some_struct: Some_Struct;
|
||||
// #error: undeclared identifier 'i'
|
||||
i := some_struct.i;
|
||||
}
|
||||
|
||||
@unused im: int; // int should be declared
|
||||
@unused thing: Some_Struct;
|
||||
// #error: undeclared identifier 'undeclared'
|
||||
another_undeclared: undeclared;
|
||||
}
|
||||
Reference in New Issue
Block a user