Skip to content

Mixin can be applied to itself #42256

@sgrekhov

Description

@sgrekhov

The following code produces no issues in analyzer and VM

class S {
}

class C = S with S;

main() {
  new C();
}

According to the #25765 (comment) there must be an error.

Dart VM version: 2.9.0-14.0.dev (dev) (Tue Jun 9 09:04:53 2020 +0200) on "windows_x64"

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4area-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.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