From: Alexis Laferrière Date: Thu, 5 Oct 2017 12:23:58 +0000 (-0400) Subject: nitc: explain asserts only if Array is available, for nitcg X-Git-Url: http://nitlanguage.org nitc: explain asserts only if Array is available, for nitcg nitcg failed on base.isa.base_isa_vt_gen1. Signed-off-by: Alexis Laferrière --- diff --git a/src/compiler/abstract_compiler.nit b/src/compiler/abstract_compiler.nit index 08cdb07..d93eba1 100644 --- a/src/compiler/abstract_compiler.nit +++ b/src/compiler/abstract_compiler.nit @@ -3637,6 +3637,9 @@ redef class AAssertExpr var nas = v.compiler.modelbuilder.model.get_mclasses_by_name("NativeArray") if nas == null then return + nas = v.compiler.modelbuilder.model.get_mclasses_by_name("Array") + if nas == null or nas.is_empty then return + var expr = explain_assert_str.expr(v) if expr == null then return