Skip to content

Rust compilation doesn't handle polymorphic static functions #5758

Open
@erniecohen

Description

@erniecohen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugCrashes, unsoundness, incorrect output, etc. If possible, add a `part:` labellang: rustDafny's transpiler to Rust and its runtime

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions