phase: 20.49 COMPLETE; 20.50 Flow+String minimal reps; 20.51 selfhost v0/v1 minimal (Option A/B); hv1-inline binop/unop/copy; docs + run_all + CURRENT_TASK -> 21.0
This commit is contained in:
14
local_tests/test_mir_object.hako
Normal file
14
local_tests/test_mir_object.hako
Normal file
@ -0,0 +1,14 @@
|
||||
// Object operations MIR test
|
||||
box DataBox {
|
||||
init { value }
|
||||
}
|
||||
|
||||
static box Main {
|
||||
main() {
|
||||
local obj
|
||||
obj = new DataBox()
|
||||
obj.value = 1
|
||||
print(obj.value)
|
||||
return obj.value
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user