diff options
author | kyessenov <unknown> | 2010-07-22 03:23:03 +0000 |
---|---|---|
committer | kyessenov <unknown> | 2010-07-22 03:23:03 +0000 |
commit | 765d1a6621452672962626a8253c1092025c703e (patch) | |
tree | 99feb7a900ecc988109527ed5b6d649abee545da /Chalice/src | |
parent | 1ab520c8f403fbcc52f4752cd7854678ef004140 (diff) |
Chalice: bug -- expression substitution should preserve typing
Diffstat (limited to 'Chalice/src')
-rw-r--r-- | Chalice/src/Translator.scala | 2 |
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
|