Merge branch 'alexandre/at-various-fixes' into wip
authorJean Privat <jean@pryen.org>
Thu, 13 Oct 2011 01:06:23 +0000 (21:06 -0400)
committerJean Privat <jean@pryen.org>
Thu, 13 Oct 2011 01:06:23 +0000 (21:06 -0400)
Conflicts:
tests/sav/base_init_linext2_alt2.sav
tests/sav/base_init_linext2_alt4.sav

src/icode/icode_base.nit

index 09c966b..5ceb1cb 100644 (file)
@@ -332,7 +332,10 @@ class INative
 
        init(m: MMMethod, e: nullable Sequence[IRegister])
        do
-               super(e)
+                # Checks that arguments contains at least one IRegister element
+                assert e.length == m.signature.arity + 1
+               
+                super(e)
                _method = m
        end