-
Notifications
You must be signed in to change notification settings - Fork 855
Lang version 6.0 -> 7.0 value restriction regression. #16007
Copy link
Copy link
Labels
AI-thinks-issue-fixedArea-Compiler-CheckingType checking, attributes and all aspects of logic checkingType checking, attributes and all aspects of logic checkingArea-Compiler-SRTPbugs in SRTP inference, resolution, witness passing, code genbugs in SRTP inference, resolution, witness passing, code genBugImpact-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.Regression
Milestone
Metadata
Metadata
Assignees
Labels
AI-thinks-issue-fixedArea-Compiler-CheckingType checking, attributes and all aspects of logic checkingType checking, attributes and all aspects of logic checkingArea-Compiler-SRTPbugs in SRTP inference, resolution, witness passing, code genbugs in SRTP inference, resolution, witness passing, code genBugImpact-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.Regression
Type
Fields
Give feedbackNo fields configured for Bug.
Consider the following code:
Typechecks without issues with
--langversion:6.0:Fails with
--langversion:7.0and higher:Looking through the features list for 7.0 it's probably regressed in one of the following: