summaryrefslogtreecommitdiff
path: root/Chalice/src
diff options
context:
space:
mode:
Diffstat (limited to 'Chalice/src')
-rw-r--r--Chalice/src/Translator.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/Chalice/src/Translator.scala b/Chalice/src/Translator.scala
index 34291fe1..0690cffa 100644
--- a/Chalice/src/Translator.scala
+++ b/Chalice/src/Translator.scala
@@ -2343,7 +2343,7 @@ object TranslationHelper {
}
case e: VariableExpr =>
// TODO: this will update the value of x's position many times -- better than none
- for ((v,x) <- sub if v == e.v) { x.pos = v.pos; return x }
+ for ((v,x) <- sub if v == e.v) { x.pos = v.pos; x.typ = e.typ; return x }
e
case q : Quantification =>
// would be better if this is a part of manipulate method