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)
|
||||
}
|
||||
|
||||
@@ -5,9 +5,21 @@ Box :: struct {
|
||||
_value i32
|
||||
}
|
||||
|
||||
hide(file) file_helper func() i32 {
|
||||
return 2
|
||||
}
|
||||
|
||||
hide(file) File_Thing :: struct {
|
||||
value i32
|
||||
}
|
||||
|
||||
hide(file) file_value :: 2
|
||||
|
||||
from_b func(_input i32) i32 {
|
||||
_local Box := Box { _value = _input }
|
||||
record _C_Record := _C_Record { value = 0 }
|
||||
thing Thing := Thing { value = value }
|
||||
return helper() + thing.value + _local._value + _foreign() + i32(record.value) + dep._visible()
|
||||
file_thing File_Thing := File_Thing { value = file_value }
|
||||
return helper() + thing.value + _local._value + _foreign() + i32(record.value) +
|
||||
dep._visible() + file_helper() + file_thing.value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user