Skip to content

[cfe] No error if extension type implements the same type twice #53791

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

Closed
sgrekhov opened this issue Oct 18, 2023 · 0 comments
Closed

[cfe] No error if extension type implements the same type twice #53791

sgrekhov opened this issue Oct 18, 2023 · 0 comments
Assignees
Labels
cfe-feature-extension-types Implement extension types feature in the CFE front-end-missing-error legacy-area-front-end Legacy: Use area-dart-model instead.

Comments

@sgrekhov
Copy link
Contributor

Extension types specification was recently updated and now contains

It is a compile-time error if two elements in the type list of the implements clause of an extension type declaration specifies the same type.

There is no this error in cfe

extension type ET(int _) implements int, int {} // no error

Related analyzer issue #53790

Tested on Dart SDK version: 3.3.0-edge.b2a158cc431a1fb0e96c3038e5441fa4de9205e7 (be) (Wed Oct 18 06:59:38 2023 +0000) on "linux_x64"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cfe-feature-extension-types Implement extension types feature in the CFE front-end-missing-error legacy-area-front-end Legacy: Use area-dart-model instead.
Projects
None yet
Development

No branches or pull requests

2 participants