file-local / package-local decls
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
hide helper func() i32 {
|
||||
hide(package) helper func() i32 {
|
||||
thing Thing := Thing { value = value }
|
||||
return thing.value
|
||||
}
|
||||
@@ -38,7 +38,18 @@ hide Local_C_Record :: c_struct {
|
||||
value c_int
|
||||
}
|
||||
|
||||
hide(file) file_helper func() i32 {
|
||||
return 1
|
||||
}
|
||||
|
||||
hide(file) File_Thing :: struct {
|
||||
value i32
|
||||
}
|
||||
|
||||
hide(file) file_value :: 1
|
||||
|
||||
from_a func() i32 {
|
||||
record Local_C_Record := Local_C_Record { value = 0 }
|
||||
return helper() + local_foreign() + i32(record.value)
|
||||
thing File_Thing := File_Thing { value = file_value }
|
||||
return helper() + local_foreign() + file_helper() + thing.value + i32(record.value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user