compiler: a method can be extern and intern, extern is used as a fallback
authorJean Privat <jean@pryen.org>
Tue, 15 Dec 2015 22:07:06 +0000 (17:07 -0500)
committerJean Privat <jean@pryen.org>
Tue, 15 Dec 2015 22:07:06 +0000 (17:07 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

src/compiler/abstract_compiler.nit

index f0a05c9..626607e 100644 (file)
@@ -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