From: Jean Privat Date: Tue, 16 Jul 2013 19:51:56 +0000 (-0400) Subject: rta: do not enter in annotations X-Git-Tag: v0.6~5^2~4^2~1 X-Git-Url: http://nitlanguage.org rta: do not enter in annotations --- diff --git a/src/rapid_type_analysis.nit b/src/rapid_type_analysis.nit index 6675dcd..fe49d70 100644 --- a/src/rapid_type_analysis.nit +++ b/src/rapid_type_analysis.nit @@ -401,7 +401,10 @@ private class RapidTypeVisitor var implicit_cast_to = node.implicit_cast_to if implicit_cast_to != null then self.add_cast_type(implicit_cast_to) end - node.visit_all(self) + # RTA does not enter in AAnnotations + if not node isa AAnnotations then + node.visit_all(self) + end end # Force to get the primitive class named `name' or abort