-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Open
Milestone
Description
default as TClass: error$"{default}": useobjectas target-type for expressions that don't have a natural typeusing (default) ...: error- During return type inference of lambdas, expressions are neither required to be target-typed or to have a natural type.
- Introduced a new kind of conversion: "default literal" conversion.
- Object equality is valid when comparing a reference type and the
defaultliteral.
Relates to PRs #37596 and #38853
FYI @gafter
Reactions are currently unavailable