Skip to content
Snippets Groups Projects
Commit a8a1e695 authored by Mikaël Mayer's avatar Mikaël Mayer
Browse files

Fixed bug missing AsInstanceOf during AbstractEvaluator.

parent 2e61dedb
Branches
Tags
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.
Please register or to comment