Skip to content

CFE: support interfaces and mixins for enum classes #48140

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
alexmarkov opened this issue Jan 13, 2022 · 1 comment
Closed

CFE: support interfaces and mixins for enum classes #48140

alexmarkov opened this issue Jan 13, 2022 · 1 comment
Assignees
Labels
legacy-area-front-end Legacy: Use area-dart-model instead.

Comments

@alexmarkov
Copy link
Contributor

This is a part of #47453.

Tests co19/LanguageFeatures/Enhanced-Enum/semantics_A01_t01 and co19/LanguageFeatures/Enhanced-Enum/semantics_A01_t02 fail with RuntimeError on the VM because interfaces and mixins are currently ignored for enum classes.

For the enum class which is declared as

enum E with M implements I1, I2 {

the following kernel is generated by CFE:

  class E extends core::_Enum /*isEnum*/  {

@chloestefantsova Could you please take a look?

@alexmarkov alexmarkov added the legacy-area-front-end Legacy: Use area-dart-model instead. label Jan 13, 2022
@chloestefantsova
Copy link
Contributor

chloestefantsova commented Jan 14, 2022

Yes, this is the functionality I'm working on at the moment. The support for mixins was added yesterday: https://dart-review.googlesource.com/c/sdk/+/227541. Currently I'm looking into supporting interfaces: https://dart-review.googlesource.com/c/sdk/+/228161/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy-area-front-end Legacy: Use area-dart-model instead.
Projects
None yet
Development

No branches or pull requests

2 participants