Skip to content
Snippets Groups Projects
Commit 6876a0df authored by Mikaël Mayer's avatar Mikaël Mayer Committed by Ravi
Browse files

Fixed bug missing AsInstanceOf during AbstractEvaluator.

parent 2db018ed
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,7 @@ class AbstractEvaluator(ctx: LeonContext, prog: Program) extends ContextualEvalu
def matchesPattern(pat: Pattern, expr: Expr, exprFromScrut: Expr): Option[Map[Identifier, (Expr, Expr)]] = (pat, expr) match {
case (InstanceOfPattern(ob, pct), e) =>
if (isSubtypeOf(e.getType, pct)) {
Some(obind(ob, e, exprFromScrut))
Some(obind(ob, e, AsInstanceOf(exprFromScrut, pct)))
} else {
None
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment