schultek/dart_mappable

Class name clash when using custom class Symbol.

Closed this issue · 1 comments

In my project (compiler) I have class Symbol, it is clashing with automatic generated mapper that uses Symbol inside map definition like that:

  @override
  final Map<Symbol, Field<Unary, dynamic>> fields = const {
    #token: _f$token,
    #operator: _f$operator,
    #right: _f$right,
  };

I believe this type can be omitted, because dart can infer it.
image

Fixed in v4.2.0