Skip to content
Snippets Groups Projects
Commit 55f5e5b2 authored by Daniel Plagge's avatar Daniel Plagge
Browse files

Bugfix in translation: In case of quantified expressions or predicates,

a superfluous bound variable name was put on the stack, resulting in wrong
resolving of bound variables.
parent b7efcd85
No related branches found
No related tags found
No related merge requests found
......@@ -616,10 +616,8 @@ public class TranslationVisitor implements ISimpleVisitor {
// I've encountered null types. Maybe that was a bug but just to be
// sure (in most cases, missing type information won't hurt):
if (type != null) {
// put a translation of the identifier on the stack ...
decl.accept(this);
// ... and take it
final PExpression expr = expressions.pop();
final PExpression expr = createIdentifierExpression(decl
.getName());
// construct "expr:type"
final PPredicate member = new AMemberPredicate(expr,
translateType(type));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment