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

VM complains about extends/implements clauses that the user didn't write. #35016

Open
lrhn opened this issue Nov 1, 2018 · 0 comments
Open
Labels
area-front-end Use area-front-end for front end / CFE / kernel format related issues. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@lrhn
Copy link
Member

lrhn commented Nov 1, 2018

Example:

class C {}
mixin M on C, Object {}
main(){}

This program gives the error message:

mix2.dart:1: Error: 'Object' can't be used in both 'extends' and 'implements' clauses.
Try removing one of the occurrences.

There is no implements clause in the program. There is an implicit super-interface for the mixin, class M$Super implements C, Object {}, but that has no extends clause.

The spec required error for writing the same type as both a super-class and an implements class, or twice as an implements class, should not trigger unless the user wrote the clause.

No other platform gives this error.

@lrhn lrhn added area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Nov 1, 2018
@askeksa-google askeksa-google added area-front-end Use area-front-end for front end / CFE / kernel format related issues. and removed area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. labels Nov 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-front-end Use area-front-end for front end / CFE / kernel format related issues. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants