1e7cb9dfed
This allows us to write enums in the mock SDK (which is currently broken). This will allow me to land such an enum in the SDK, in https://dart-review.googlesource.com/c/sdk/+/445403. This diverges from the actual Dart SDK implementation of the Enum class and the _Enum class. I think this is an acceptable divergence; these classes hardly ever change, and the changes will be easy to follow when they come, however many months or years from now. Change-Id: Ia6ff3803415af8c251dbee330a218f2618395cc4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/446141 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Samuel Rawlins <srawlins@google.com>