Merge: nitc: don't crash when checking if a broken method can be inlined
authorJean Privat <jean@pryen.org>
Thu, 3 Mar 2016 07:35:23 +0000 (02:35 -0500)
committerJean Privat <jean@pryen.org>
Thu, 3 Mar 2016 07:35:23 +0000 (02:35 -0500)
Pull-Request: #1968

src/compiler/abstract_compiler.nit

index a39e59b..1fad40d 100644 (file)
@@ -2046,6 +2046,8 @@ redef class MMethodDef
                else if node isa AClassdef then
                        # Automatic free init is always inlined since it is empty or contains only attribtes assigments
                        return true
+               else if node == null then
+                       return true
                else
                        abort
                end