Commit 53dc9612 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Merge pull request #340 from rntz/master

add tests for "[] = []", "2 = 2"; currently we core dump on these
parents 03b786e3 7c6ee202
......@@ -254,8 +254,6 @@ static void _checkUnpackingLength(i64 expected, i64 given) {
}
extern "C" Box** unpackIntoArray(Box* obj, int64_t expected_size) {
assert(expected_size > 0);
if (obj->cls == tuple_cls) {
BoxedTuple* t = static_cast<BoxedTuple*>(obj);
_checkUnpackingLength(expected_size, t->elts.size());
......
# expected: fail
2 = 2
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment