-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Support for double constant initialization in Dafny-to-Rust #5667
Conversation
Hi! This is Bua from the CI fuzzing project. Not sure if this is related but the following code produces error only in rust backend. original.dfy: trait T0 {
const f8 : bool
}
class C0 extends T0 {
constructor (f8 : bool) {
this.f8 := f8;
}
}
method Main() {
var c0 := new C0(false);
print c0.f8, "\n";
} Command:
Output:
|
This is not related. Constant on traits are not yet supported on the Dafny to Rust code generator |
71a5f8d
to
a59357b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR fixes #5642
I added the corresponding test.
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.