lang_2023/tests/memory.lang

9 lines
162 B
Text
Raw Normal View History

2023-06-03 19:01:03 +03:00
struct \struct-with-ref =
& @\int`_
2023-03-31 12:10:12 +03:00
2023-06-03 19:01:03 +03:00
decl test-memory : -> \unit
def test-memory = {
2023-07-03 19:05:50 +03:00
let unique-ref1 <- \int..new: 5
2023-06-03 19:01:03 +03:00
var unique-ref2 <- \array..of: 1 2 3
2023-03-31 12:10:12 +03:00
}