nitg: Corrected bug when creating a new AVarExpr, uses the last inferred type instead...
[nit.git] / src / typing.nit
index 527f694..c760c74 100644 (file)
@@ -696,6 +696,8 @@ redef class AVarReassignExpr
                var readtype = v.get_variable(self, variable)
                if readtype == null then return
 
+               read_type = readtype
+
                var writetype = variable.declared_type
                if writetype == null then return