rta: do not drop abstract methods. abstract method can be live in Nit.
authorJean Privat <jean@pryen.org>
Thu, 26 Feb 2015 12:56:06 +0000 (19:56 +0700)
committerJean Privat <jean@pryen.org>
Thu, 26 Feb 2015 12:56:06 +0000 (19:56 +0700)
Signed-off-by: Jean Privat <jean@pryen.org>

src/rapid_type_analysis.nit

index 2d9fee4..434c0e0 100644 (file)
@@ -382,7 +382,6 @@ class RapidTypeAnalysis
                if mproperty.mpropdefs.length <= 1 then return
                # If all definitions of a method are live, we can remove the definition of the totry set
                for d in mproperty.mpropdefs do
-                       if d.is_abstract then continue
                        if not live_methoddefs.has(d) then return
                end
                #print "full property: {mpropdef.mproperty} for {mpropdef.mproperty.mpropdefs.length} definitions"