Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dart 2 Error #5

Open
thosakwe opened this issue Nov 8, 2018 · 1 comment
Open

Dart 2 Error #5

thosakwe opened this issue Nov 8, 2018 · 1 comment

Comments

@thosakwe
Copy link

thosakwe commented Nov 8, 2018

I'm running Dart 2.0.0 on Mac, and trying to finish up https://github.com/angel-dart/eventsource.
However, I get an error on startup. I think this should be pretty easy to patch up; would you mind if I sent in a PR to correct it?

Here's the error:

(virtualenv_py3) wg-dhcp201d207d109:eventsource thosakwe$ dart example/main.dart
file:///Users/thosakwe/.pub-cache/hosted/pub.dartlang.org/eventsource-0.2.0/lib/publisher.dart:109:23: Error: The argument type 'eventsource.src.proxy_sink::ProxySink<dynamic>' can't be assigned to the parameter type 'dart.core::Sink<eventsource.src.event::Event>'.
Try changing the type of the parameter, or casting the argument to 'dart.core::Sink<eventsource.src.event::Event>'.
        _cache.replay(sub, lastEventId, channel);
                      ^
@stevenroose
Copy link
Owner

PR would be very welcome. I can't see immediately what is going on, but I've been away from Dart for quite a while now..

selankon added a commit to selankon/dart-eventsource that referenced this issue Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants