Skip to content

Commit e2b3551

Browse files
committed
Use inferred and not annoated tpe as before
1 parent 31d045f commit e2b3551

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

effekt/shared/src/main/scala/effekt/machine/Transformer.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ object Transformer {
149149
transform(substitute(rest)(using Substitution(Map(), Map(), Map(id -> core.ValueVar(otherId, otherTpe)), Map())))
150150

151151
case core.Let(id, tpe, expr, rest) =>
152-
transformNamed(Variable(transform(id), transform(tpe)), expr).run { _ =>
152+
// TODO this needs to be expr.tpe and not tpe, but why?
153+
transformNamed(Variable(transform(id), transform(expr.tpe)), expr).run { _ =>
153154
transform(rest)
154155
}
155156

0 commit comments

Comments
 (0)