Description
KeY seemingly doesn't have a rule that makes enum constants non-null.
Reproducible
always
Steps to reproduce
Try to prove the contract below.
File Severity.java
public enum Severity {
INFO,
WARNING,
CRITIQUE
}
File Checker.java
public class Checker {
/*@ public normal_behaviour
@ ensures \result != null;
@*/
Severity checkIt() {
return Severity.INFO;
}
}
Additional information