nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
36be3f9
)
Merge: rta: do not analyze abstract methods
author
Jean Privat
<jean@pryen.org>
Thu, 2 Jun 2016 13:42:41 +0000
(09:42 -0400)
committer
Jean 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
patch
|
blob
|
history
diff --git
a/src/rapid_type_analysis.nit
b/src/rapid_type_analysis.nit
index
2d621e8
..
88e2b7e
100644
(file)
--- a/
src/rapid_type_analysis.nit
+++ b/
src/rapid_type_analysis.nit
@@
-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