Skip to content

CFE: support interfaces and mixins for enum classes #48140

@alexmarkov

Description

@alexmarkov

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?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions