Skip to content

Dart2js errors out when it encounters const Map<Type, AnyThing> #28337

Closed
@tejainece

Description

@tejainece

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions