Skip to content
This repository has been archived by the owner on Jul 20, 2018. It is now read-only.

FutureOr-ify CancellableFuture (Strong Mode stuff) #81

Open
llamadonica opened this issue Mar 19, 2017 · 0 comments
Open

FutureOr-ify CancellableFuture (Strong Mode stuff) #81

llamadonica opened this issue Mar 19, 2017 · 0 comments

Comments

@llamadonica
Copy link

llamadonica commented Mar 19, 2017

When running barback, I get:

Unhandled exception:
[error] Invalid override. The type of 'CancelableFuture.then' ('<S>((T) → S, {onError: Function}) → 
Future<S>') isn't a subtype of 'Future<T>.then' ('<S>((T) → FutureOr<S>, {onError: Function}) → 
Future<S>'). (package:barback/src/utils/cancelable_future.dart, line 32, col 3)

I think FutureOr<S> is a recent addition.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant