We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a22b3d4 commit 44087c2Copy full SHA for 44087c2
key.core/src/main/java/de/uka/ilkd/key/nparser/builder/FunctionPredicateBuilder.java
@@ -78,6 +78,9 @@ public Object visitPred_decl(KeYParser.Pred_declContext ctx) {
78
79
if (lookup(p.name()) == null) {
80
functions().add(p);
81
+ } else {
82
+ // weigl: agreement on KaKeY meeting: this should be an error.
83
+ semanticError(ctx, "Predicate '" + p.name() + "' is already defined!");
84
}
85
return null;
86
0 commit comments