Fix table(), set(), vector() constructors in table initializer lists.

Also adds type checking of yield values to table() constructor and
fixes the type checking of yield values in vector() constructor.

Addresses #5.
This commit is contained in:
Jon Siwek 2012-11-28 14:19:48 -06:00
parent e2fdf16e0c
commit a0590b2140
4 changed files with 150 additions and 6 deletions

View file

@ -0,0 +1,42 @@
table of set
{
[13] = {
[bar, 2] ,
[foo, 1]
},
[5] = {
[bah, 3] ,
[baz, 4]
}
}
table of vector
{
[13] = [1, 2],
[5] = [3, 4]
}
table of table
{
[13] = {
[bar, 2] = 2,
[foo, 1] = 1
},
[5] = {
[bah, 3] = 3,
[baz, 4] = 4
}
}
T
T
T
T
T
T
T
T
T
T
T
T