lang_2023/tests/memory.lang

8 lines
165 B
Text

struct StructWithRef =
& @Int_0
decl test_memory : Unit -> Unit
def test_memory = {
const @unique_ref1 <- Int.@_new: 5
var @unique_ref2 <- Array.@of: 1 2 3
}