Skip to content
Snippets Groups Projects
Commit 82e318bf authored by Etienne Kneuss's avatar Etienne Kneuss
Browse files

Allow functions returning Unit in codegen evaluator

parent c191f46c
No related branches found
No related tags found
No related merge requests found
......@@ -240,6 +240,9 @@ class CompilationUnit(val ctx: LeonContext,
}
finiteMap(pairs.toSeq, from, to)
case (_, UnitType) =>
UnitLiteral()
case _ =>
throw CompilationException("Unsupported return value : " + e.getClass +" while expecting "+tpe)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment