You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dafny program verifier finished with 1 verified, 0 errors
/test-java/Test/Broken.java:7: error: Broken is not abstract and does not override abstract method hey() in Something
public class Broken implements Something<Boolean> {
^
/test-java/Test/Broken.java:57: error: hey() in Broken cannot implement hey() in Something
public boolean hey() {
^
return type boolean is not compatible with Boolean
where T is a type-variable:
T extends Object declared in interface Something
2 errors
Error while compiling Java files. Process exited with exit code 1
What happened?
When compiling a Dafny datatype that implements a generic trait with bool as the type argument, the resulting Java code uses a primitive return type where a boxed type is required.
What type of operating system are you experiencing the problem on?
Mac
The text was updated successfully, but these errors were encountered:
Dafny version
4.9.1
Code to produce this issue
test.dfy
:Command to run and resulting output
Running
fails with
What happened?
When compiling a Dafny datatype that implements a generic trait with
bool
as the type argument, the resulting Java code uses a primitive return type where a boxed type is required.What type of operating system are you experiencing the problem on?
Mac
The text was updated successfully, but these errors were encountered: