dafny-lang / dafny

Dafny is a verification-aware programming language
https://dafny.org
Other
2.94k stars 263 forks source link

fix: Include arguments to Go external constructor #5813

Closed robin-aws closed 1 month ago

robin-aws commented 1 month ago

Description

The Go backend was not passing arguments when invoking an {:extern} constructor.

How has this been tested?

Enabled Go in the existing ExternCtors.dfy test case, and refactored it to not require support for classes with both Dafny- and extern-implemented declarations (which is a separate feature).

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.