From 0f73a5cb4d1ff60cfccf4f4357d3fcd3a621fb18 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Tue, 15 Dec 2015 17:07:06 -0500 Subject: [PATCH] compiler: a method can be extern and intern, extern is used as a fallback Signed-off-by: Jean Privat --- src/compiler/abstract_compiler.nit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler/abstract_compiler.nit b/src/compiler/abstract_compiler.nit index f0a05c9..626607e 100644 --- a/src/compiler/abstract_compiler.nit +++ b/src/compiler/abstract_compiler.nit @@ -2135,7 +2135,8 @@ redef class AMethPropdef # Try special compilation if mpropdef.is_intern then if compile_intern_to_c(v, mpropdef, arguments) then return - else if mpropdef.is_extern then + end + if mpropdef.is_extern then if mpropdef.mproperty.is_init then if compile_externinit_to_c(v, mpropdef, arguments) then return else -- 1.7.9.5