-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
The interpolated string handler spec defines an additive expression as:
"... an additive_expression composed entirely of _interpolated_string_expression_s and using only + operators."
Additive expressions can be converted to handler types. For example: Handler h = $"...." + $"...." + $"....";.
In the current implementation:
($"...." + $"....") + $"...."is also considered an additive expression (ie. the conversion to handler type is allowed)$"...." + ($"...." + $"....")is not considered an additive expression (ie. the conversion to handler type is disallowed)
The two scenarios should probably be consistent (either allow or disallow the conversion).
Whatever we decide, the spec language should be refined.
Relates to proposal #4487
Relates to test plan dotnet/roslyn#51499
Reactions are currently unavailable