marcojakob/dart-event-bus

@override is not a compile-time constant

Closed this issue · 2 comments

Since v0.1.2 where you've removed 'package:meta/meta.dart' from import and dependencies, my project using it would not compile as I get the following error:
/web/out/packages/event_bus/src/simple_event_bus.dart:13:4: Error: not a compile-time constant
@OverRide
^^^^^^^^
Error: Compilation failed.

Hmm. Strange that my Dart editor doesn't report this error...
I've fixed it in v0.1.3. Hope it works now.

Thank you, it does.
The problem did not arise in dart editor nor during execution in dartium.
It only appeared when using dart2js compiler. Sorry, I should have mentioned this in my bug report ;)