MichaelFenwick / Color

A simple Dart package exposing a Color class which can be used to create, convert, and compare colors.
http://pub.dartlang.org/packages/color
MIT License
52 stars 18 forks source link

Dart2JS build fails #10

Closed CarrKnight closed 9 years ago

CarrKnight commented 9 years ago

Whenever I try to pub build demo dart2js fails with the following:

package:color/color.dart: 'case' expression type 'TypeImpl' overrides 'operator =='.

This is in spite of the fact that the package works very well in dartium

MichaelFenwick commented 9 years ago

Seems I was using the switch statement in a way that wasn't allowed by Dart. It shouldn't have run in Dartium at all. I've changed the switch to an if/else if/else so it should all be good now.

ciasaboark commented 9 years ago

Thanks for the fix. Can the 2.0.1 build be pushed to pub.dartlang.org?