Skip to content

fix 10472 - #11349

Merged
TIHan merged 10 commits into
dotnet:mainfrom
dsyme:fix-10472
Apr 8, 2021
Merged

fix 10472#11349
TIHan merged 10 commits into
dotnet:mainfrom
dsyme:fix-10472

Conversation

@dsyme

@dsyme dsyme commented Apr 1, 2021 •

Copy link
Copy Markdown
Contributor

Fixes #10472

This has to do with the generation of local type functions that don't escape their scope, which we use when local things are both generic and constrained.

In particular,

  1. they need to be used for member constraints too, because there are witnesses being passed for these now
  2. so the whole generation process for local type functions needs to be adjusted to pass generate witnesses correctly

There's quite a lot of change though I've been over the code carefully.

There's also a change related to the emit of the "inline" keyword when printing method signatures, which was necessary to make the generated signature tests for innerpoly work

@TIHan

TIHan commented Apr 7, 2021

Copy link
Copy Markdown
Contributor

🤞

@TIHan

TIHan commented Apr 7, 2021

Copy link
Copy Markdown
Contributor

There are witness failures :( - hopefully they can be resolved without having to include back the contract info

@dsyme

dsyme commented Apr 8, 2021

Copy link
Copy Markdown
Contributor Author

There are witness failures :( - hopefully they can be resolved without having to include back the contract info

These were I think all related to the emit of the "inline" keyword, which are necessary to make the generated signature tests for innerpoly work - but shouldn't be emitted in error messages. I've fixed that now

@TIHan TIHan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once this MacOS CI passes, we should merge it. Hooray!

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.

error FS0192 : internal error : unexpected non-generation of witness with FSharp.Core 5.0

2 participants