Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler failure when inlining static method #9702

Closed
Shmew opened this issue Jul 16, 2020 · 4 comments
Closed

Compiler failure when inlining static method #9702

Shmew opened this issue Jul 16, 2020 · 4 comments
Assignees
Labels
Bug Impact-High (Internal MS Team use only) Describes an issue with extreme impact on existing code.
Milestone

Comments

@Shmew
Copy link

Shmew commented Jul 16, 2020

When compiling code that inlines a call to a static member with a method parameter type of obj it throws with

Fsc: error FS0192(0,0): error : the anonymous record <>f__AnonymousType3440295454`2 has not been
 generated in the pre-phase of generating this module

Repro steps

I tried to extract many various parts from the Fable repo and my library to produce a more compact reproduction, but I can't reproduce the failure when I do that.

Known workarounds

Removing the inline allows the compilation to succeed (see compiler directives in repro steps).

Related information

Tested with both dotnet cli 3.1.101 and 3.1.302

Visual Studio 16.6.4

Might be related to #6434?

@cartermp
Copy link
Contributor

cartermp commented Aug 8, 2020

I believe @isaacabraham ran into this somehow in Farmer as well as per https://twitter.com/isaac_abraham/status/1292124826522603524

@cartermp cartermp added the Impact-High (Internal MS Team use only) Describes an issue with extreme impact on existing code. label Aug 13, 2020
@cartermp
Copy link
Contributor

Tagging this with urgency-now since the message is absolutely awful and clearly blocks people from progressing without sheer guesswork.

@dsyme dsyme mentioned this issue Aug 24, 2020
1 task
@dsyme
Copy link
Contributor

dsyme commented Aug 24, 2020

There's a likely fix for this here: #9996

@cartermp
Copy link
Contributor

cartermp commented Sep 3, 2020

Should be fixed by #9996

@cartermp cartermp closed this as completed Sep 3, 2020
@cartermp cartermp modified the milestones: Backlog, 16.8 Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Impact-High (Internal MS Team use only) Describes an issue with extreme impact on existing code.
Projects
None yet
Development

No branches or pull requests

3 participants