-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Address Interpolated Strings test plan #55701
Conversation
Looks like there's a couple of test failures In reply to: 901449708 |
@jcouv should be fixed, please take a look. |
@@ -825,7 +825,16 @@ private ImmutableArray<BoundExpression> BindInterpolatedStringParts(BoundUnconve | |||
var interpolatedStringConversion = memberAnalysisResult.ConversionForArg(interpolatedStringArgNum); | |||
Debug.Assert(interpolatedStringConversion.IsInterpolatedStringHandler); | |||
var interpolatedStringParameter = GetCorrespondingParameter(ref memberAnalysisResult, parameters, interpolatedStringArgNum); | |||
Debug.Assert(interpolatedStringParameter.Type is NamedTypeSymbol { IsInterpolatedStringHandlerType: true }); | |||
Debug.Assert(interpolatedStringParameter is { Type: NamedTypeSymbol { IsInterpolatedStringHandlerType: true } } | |||
#pragma warning disable format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Do we need a tracking issue for formatting problem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sharwell, do you know if there's a tracking issue for the formatter pulling this or
all the way to the right, rather than leaving it aligned as it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done with review pass (iteration 7)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Thanks (iteration 9). Still would recommend small spec change. Region analysis will be fixed later per offline discussion.
Followed up on the spec offline. There is already a note about erroring in the case of bad info. |
… using InterpolatedStringHandlerArgumentAttribute on a lambda.
Addresses remaining compiler items on the interpolated strings test plan: #51499. I would highly recommend commit-by-commit review for these. The first few commits add tests and fix small bugs found with the tests. The last commit bundles the tests that were simply added with no other changes necessary.