[cfe] Infer missing type arguments on enum elements

This CL also moves the resolution of the _Enum type before it's
checked for being a correct supertype.

Part of https://github.com/dart-lang/sdk/issues/47453

Change-Id: I80d4197a430b90e4aea785961bfbcbbee588255a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/228644
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>

https://dart.googlesource.com/sdk/+/a03eb19a61dc9a60bb82bf5b23490e7bdab934a3
1 file changed
tree: b5e8dd4595701c44d39a5245970e6a472ffd58de
  1. commits.json