Skip to content
Snippets Groups Projects
Commit e9bb6d75 authored by Philippe Suter's avatar Philippe Suter
Browse files

Clarified assertion error.

parent 5e202817
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,9 @@ object Trees { ...@@ -37,7 +37,9 @@ object Trees {
case class LetTuple(binders: Seq[Identifier], value: Expr, body: Expr) extends Expr { case class LetTuple(binders: Seq[Identifier], value: Expr, body: Expr) extends Expr {
binders.foreach(_.markAsLetBinder) binders.foreach(_.markAsLetBinder)
assert(value.getType.isInstanceOf[TupleType]) assert(value.getType.isInstanceOf[TupleType],
"The definition value in LetTuple must be of some tuple type; yet we got [%s]. In expr: \n%s".format(value.getType, this))
val et = body.getType val et = body.getType
if(et != Untyped) if(et != Untyped)
setType(et) setType(et)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment