Skip to content

Conversation

@robin-aws
Copy link
Member

@robin-aws robin-aws commented Oct 25, 2024

Description

#5757 made FuncExtensions in the C# runtime public instead of internal, which is not ideal since it increases the API surface area of the runtime and is a one-way door (and causes false positives in prerelease regressions testing). It was done because it seemed to be necessary, but the actual root cause was dropping these extension methods when post-processing Dafny's output. This PR reverts the change and special-cases the class in the python script instead.

How has this been tested?

Existing tests.

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

@robin-aws robin-aws changed the title fix: Try a simple revert fix: Make FuncExtensions internal again, handle it in DafnyGeneratedFromDafnyPost.py instead Oct 28, 2024
@robin-aws robin-aws marked this pull request as ready for review October 29, 2024 00:45
MikaelMayer
MikaelMayer previously approved these changes Oct 29, 2024
@MikaelMayer MikaelMayer enabled auto-merge (squash) October 29, 2024 18:01
@MikaelMayer MikaelMayer merged commit 77cb3ba into dafny-lang:master Oct 29, 2024
22 checks passed
MikaelMayer added a commit that referenced this pull request Oct 30, 2024
…romDafnyPost.py instead (#5860)

### Description
#5757 made `FuncExtensions` in the C# runtime public instead of
internal, which is not ideal since it increases the API surface area of
the runtime and is a one-way door (and causes false positives in
prerelease regressions testing). It was done because it seemed to be
necessary, but the actual root cause was dropping these extension
methods when post-processing Dafny's output. This PR reverts the change
and special-cases the class in the python script instead.

### How has this been tested?
Existing tests.

<small>By submitting this pull request, I confirm that my contribution
is made under the terms of the [MIT
license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>

---------

Co-authored-by: Mikael Mayer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants