dafny icon indicating copy to clipboard operation
dafny copied to clipboard

Rust compilation doesn't handle polymorphic static functions

Open erniecohen opened this issue 5 months ago • 1 comments

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 avatar Sep 06 '24 20:09 erniecohen