nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nitg: Corrected bug when creating a new AVarExpr, uses the last inferred type instead...
[nit.git]
/
src
/
typing.nit
diff --git
a/src/typing.nit
b/src/typing.nit
index
527f694
..
c760c74
100644
(file)
--- a/
src/typing.nit
+++ b/
src/typing.nit
@@
-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