Skip to content
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

Rust compilation doesn't handle polymorphic static functions #5758

Open
erniecohen opened this issue Sep 6, 2024 · 1 comment
Open

Rust compilation doesn't handle polymorphic static functions #5758

erniecohen opened this issue Sep 6, 2024 · 1 comment
Labels
kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label lang: rust Dafny's transpiler to Rust and its runtime

Comments

@erniecohen
Copy link

Dafny version

4.8.0 (nightly 9/6)

Code to produce this issue

datatype F<T> = F(t:T) {
    static function ctor(t:T):F<T> { F(t) }
}

Command to run and resulting output

Dafny.dll run -t:rs test.dfy

What happened?

(0,-1): Error: Microsoft.Dafny.UnsupportedInvalidOperationException: Static functions with type arguments

What type of operating system are you experiencing the problem on?

Mac

@erniecohen erniecohen added the kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label label Sep 6, 2024
@robin-aws robin-aws added the lang: rust Dafny's transpiler to Rust and its runtime label Sep 10, 2024
@robin-aws
Copy link
Member

Thanks for the report. There are several gaps like this since the Rust backend is not yet complete, but this may be easy to address. @MikaelMayer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label lang: rust Dafny's transpiler to Rust and its runtime
Projects
None yet
Development

No branches or pull requests

2 participants