mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
Support "new" on lists.
This commit is contained in:
6
test/list/new.wren
Normal file
6
test/list/new.wren
Normal file
@ -0,0 +1,6 @@
|
||||
var list = new List
|
||||
|
||||
IO.print(list.count) // expect: 0
|
||||
IO.print(list) // expect: []
|
||||
list.add(1)
|
||||
IO.print(list) // expect: [1]
|
||||
Reference in New Issue
Block a user