Merge branch 'fix-vt' into wip
[nit.git] / src / icode / icode_base.nit
index b2c67f0..ea13a9f 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