bug fix
This commit is contained in:
+7
-3
@@ -6,8 +6,12 @@ print('The list contains ', count(l), ' items.\n');
|
||||
print('The list is: ', l, '.\n');
|
||||
|
||||
|
||||
fun fail()
|
||||
fun fail(p, fail)
|
||||
{
|
||||
if p == 5:
|
||||
assert(false);
|
||||
else
|
||||
fail(p+1, fail);
|
||||
}
|
||||
|
||||
|
||||
fail();
|
||||
fail(0, fail);
|
||||
@@ -68,11 +68,9 @@ static Object *select(Object *self, Object *key, Heap *heap, Error *err)
|
||||
return Object_FromNativeFunction(bm->runtime, bin_assert, -1, heap, err);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
default: NULL;
|
||||
}
|
||||
|
||||
UNREACHABLE;
|
||||
// Not found.
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user