Support "new" on lists.

This commit is contained in:
Bob Nystrom
2014-04-08 07:31:23 -07:00
parent 49feeae99c
commit f6dd88937b
3 changed files with 15 additions and 5 deletions

6
test/list/new.wren Normal file
View 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]