lang_2023/tests/memory.lang

9 lines
162 B
Text
Raw Normal View History

2023-03-31 12:10:12 +03:00
struct StructWithRef =
& @Int_
2023-03-31 12:10:12 +03:00
decl test_memory : Unit -> Unit
def test_memory = {
2023-04-25 21:21:36 +03:00
const @unique_ref1 <- Int.@_new 5
var @unique_ref2 <- Array.@of 1 2 3
2023-03-31 12:10:12 +03:00
}