Skip to content

compile-time error if a redirecting constructor includes a body #2474

Closed
@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


dartc fails co19 test Language/07_Classes/07_Classes_A02_t06.dart

class A {
  A(): this.B() {} // body not allowed
  A.B() {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions