Skip to content

cascading operators break strong mode type checking #29718

@zelam

Description

@zelam

https://dartpad.dartlang.org/645ed8079bc07d4976a6cc773a2fa269

Derived d = new Base()..val = 'd';
Derived e = new Base();

I expect both those lines to have a compile time error in strong mode, but only the second line does

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onclosed-duplicateClosed in favor of an existing reportlanguage-strong-mode-polishlegacy-area-analyzerUse area-devexp instead.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions