-
Notifications
You must be signed in to change notification settings - Fork 855
Codegen issue w.r.t. DefaultAugmentation(false) #16565
Copy link
Copy link
Labels
Area-Compiler-CodeGenIlxGen, ilwrite and things at the backendIlxGen, ilwrite and things at the backendArea-Diagnosticsmistakes and possible improvements to diagnosticsmistakes and possible improvements to diagnosticsBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.(Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone
Metadata
Metadata
Assignees
Labels
Area-Compiler-CodeGenIlxGen, ilwrite and things at the backendIlxGen, ilwrite and things at the backendArea-Diagnosticsmistakes and possible improvements to diagnosticsmistakes and possible improvements to diagnosticsBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.(Internal MS Team use only) Describes an issue with limited impact on existing code.
Type
Fields
Give feedbackNo fields configured for Bug.
Projects
Status
Done
Given the following code:
When compiling or pasted to FSI, produces the following issue:
Removing
DefaultAugmentationattribute and static memberNoneresolves the issue.Interestingly enough, this is roughly how
FSharpOptionis defined in fslib, it also fails to compile in fsi, but not in product compiler apparently.If it's a regression, then it's a fairly old one, SharpLab shows it and they use F# 6