Skip to content
Snippets Groups Projects
Commit db6b957b authored by Emmanouil (Manos) Koukoutos's avatar Emmanouil (Manos) Koukoutos Committed by Etienne Kneuss
Browse files

Fix a bug in letTuple

parent b65b4746
Branches
Tags
No related merge requests found
......@@ -23,7 +23,7 @@ object Constructors {
case Nil =>
body
case x :: Nil =>
if (value.getType == x.getType || !value.getType.isInstanceOf[TupleType]) {
if (isSubtypeOf(value.getType, x.getType) || !value.getType.isInstanceOf[TupleType]) {
// This is for cases where we build it like: letTuple(List(x), tupleWrap(List(z)))
Let(x, value, body)
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment