mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2026-01-09 21:25:02 +00:00
example fixes
This commit is contained in:
parent
71c7d91e1a
commit
562541087e
13 changed files with 30 additions and 322 deletions
|
|
@ -1,8 +1,8 @@
|
|||
struct StructWithRef =
|
||||
& @Int_0
|
||||
|
||||
decl test_memory : Unit -> Unit
|
||||
decl test_memory : -> Unit
|
||||
def test_memory = {
|
||||
const @unique_ref1 <- Int.@_new: 5
|
||||
var @unique_ref2 <- Array.@of: 1 2 3
|
||||
const unique_ref1 <- Int._new: 5
|
||||
var unique_ref2 <- Array.of: 1 2 3
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue