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

Compilation error in co19 async loop tests #34438

Open
danrubel opened this Issue Sep 11, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@danrubel
Member

danrubel commented Sep 11, 2018

The following co19 tests

  • Language/Statements/Continue/async_loops_t01
  • Language/Statements/Continue/async_loops_t02
  • Language/Statements/Continue/async_loops_t03
  • Language/Statements/Continue/async_loops_t04
  • Language/Statements/Continue/async_loops_t05
  • Language/Statements/Continue/async_loops_t06
  • Language/Statements/Continue/async_loops_t07
  • Language/Statements/Continue/async_loops_t08
  • Language/Statements/Continue/async_loops_t09
  • Language/Statements/Continue/async_loops_t10
  • Language/Expressions/Function_Invocation/async_cleanup_t01
  • Language/Expressions/Function_Invocation/async_cleanup_t02
  • Language/Expressions/Function_Invocation/async_cleanup_t03
  • Language/Expressions/Function_Invocation/async_cleanup_t04
  • Language/Expressions/Function_Invocation/async_cleanup_t05
  • Language/Expressions/Function_Invocation/async_cleanup_t06
  • Language/Expressions/Function_Invocation/async_cleanup_t07
  • Language/Expressions/Function_Invocation/async_cleanup_t08
  • Language/Statements/Continue/control_transfer_t08
  • Language/Statements/Continue/control_transfer_t09

fail with a compilation error similar to

tests/co19_2/src/Language/Statements/Continue/stream_utils.dart:36:17: Error: Declared type variables of '_StreamSubscriptionWrapper::asFuture' doesn't match those on overridden method 'StreamSubscription::asFuture'.
  Future/*<E>*/ asFuture/*<E>*/([var/*=E*/ futureValue]) {
                ^
tests/co19_2/src/Language/Statements/Continue/stream_utils.dart:36:17: Error: The return type of the method '_StreamSubscriptionWrapper::asFuture' is dart.async::Future<dynamic>, which does not match the return type of the overridden method (dart.async::Future<dart.async::StreamSubscription::asFuture::E>).
Change to a subtype of dart.async::Future<dart.async::StreamSubscription::asFuture::E>.
  Future/*<E>*/ asFuture/*<E>*/([var/*=E*/ futureValue]) {
                ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment