Closed
Description
When Dart2Js encounters const Map<Type, AnyThing>
, it throws the following error:
[Error from Dart2JS on web/panel/main.dart]: packages/....dart:14:21: Const-map key type 'TypeImpl' overrides 'operator =='. @ProvideSerializers(const <Type, Type>{ Establishment: EstablishmentSerializer, Speciality: SpecialitySerializer })
Analyzer doesn't have a problem with it. DartVM executes the code pretty fine. source_gen and analyzer package seems to handle them pretty well.