anchor.diff:  }
   
   // Both `toString` and `index` are inherited from superclass.
  -enum StringIndexEnum {
  +enum OverrideEnum {
     v1, v2;
     // Cannot override index
     int get superIndex => super.index;
  
positive.code:   // But you can call extension members if there is no conflict.
    Expect.equals("extension", EnumAll.v1.extension);
  
    // The `index` and `toString` implementations are inherited from
    // the `Enum` implementing superclass.
    Expect.equals(0, StringIndexEnum.v1.index);
    Expect.equals(1, StringIndexEnum.v2.index);
    Expect.equals(0, StringIndexEnum.v1.superIndex);
    Expect.equals(1, StringIndexEnum.v2.superIndex);
    Expect.equals("FakeString", StringIndexEnum.v1.toString());
    Expect.equals("FakeString", StringIndexEnum.v2.toString());
    Expect.equals("StringIndexEnum.v1", StringIndexEnum.v1.realToString());
    Expect.equals("StringIndexEnum.v2", StringIndexEnum.v2.realToString());
  
    // Enum elements are always distinct, even if their state doesn't differ.
    Expect.notIdentical(Canonical.v1, Canonical.v2, "Canonical - type only");
  
negative.code:   EnumAll.staticGetSet = EnumAll.v5;
    Expect.equals(42, EnumAll.staticMethod());
  
    Expect.identical(EnumAll.v3, EnumAll<num, num>.factory(2));
    Expect.identical(EnumAll.v3, EnumAll<num, num>.refactory(2));
  
    // Access static members through typedef.
    Expect.identical(EnumAll.v3, TypeDefAll.sConst);
  