Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language/Classes/definition_t23 is incorrect #129

Closed
kmillikin opened this issue Jan 4, 2018 · 1 comment
Closed

Language/Classes/definition_t23 is incorrect #129

kmillikin opened this issue Jan 4, 2018 · 1 comment
Assignees

Comments

@kmillikin
Copy link

The spec in the repository (https://github.com/dart-lang/sdk/blob/master/docs/language/dartLangSpec.tex) currently has:

It is a compile-time error if the superclass of a class $C$ is specified as a superinterface of $C$.

The named test checks that we can compile classes like:

@A() abstract class I3<T> = A1 with B1 implements A1;
abstract class J3<T> = A1 with B1 implements A1;

@A() abstract class I4 = A1 with B1 implements A1;
abstract class J4 = A1 with B1 implements A1;
@B() class X4 = A1 with B1 implements A1;
class Y4 = A1 with B1 implements A1;

which should all be a compile-time error. See dart-lang/sdk#31624.

@sgrekhov sgrekhov self-assigned this Jan 9, 2018
sgrekhov pushed a commit that referenced this issue Jan 10, 2018
…ass, the second should fail with the compile time error
@sgrekhov
Copy link
Contributor

Fixed

sgrekhov pushed a commit that referenced this issue Jan 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants