Merge: rta: do not analyze abstract methods
authorJean Privat <jean@pryen.org>
Thu, 2 Jun 2016 13:42:41 +0000 (09:42 -0400)
committerJean Privat <jean@pryen.org>
Thu, 2 Jun 2016 13:42:41 +0000 (09:42 -0400)
Just stop visiting abstract methods. This make RTA more robust when there is not body

Pull-Request: #2141
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

src/rapid_type_analysis.nit

index 2d621e8..88e2b7e 100644 (file)
@@ -255,6 +255,8 @@ class RapidTypeAnalysis
                                add_cast(paramtype)
                        end
 
+                       if mmethoddef.is_abstract then continue
+
                        var npropdef = modelbuilder.mpropdef2node(mmethoddef)
 
                        if npropdef isa AClassdef then