Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Conversation

srawlins
Copy link
Contributor

@srawlins srawlins commented May 2, 2018

Fixes dart-lang/tools#623

There were a number of runtime failures. Some were simple. The ones that involved noSuchMethod in recording_proxy_mixin.dart were not simple. Basically, because of how the noSuchMethod is implemented, in terms of Futures and Streams, and how FutureReference.value and StreamReference.value work, types were being lost. If value was a Future<Directory>, as returned by Function.apply, then result was inevitably Future<dynamic> by the end of noSuchMethod. ☹️

Tested with dart --preview-dart-2 test/recording_test.dart and dart test/recording_test.dart.

@srawlins
Copy link
Contributor Author

srawlins commented May 2, 2018

CC @tvolkert all checks are passed.

@keertip
Copy link
Contributor

keertip commented May 9, 2018

@tvolkert @matanlurey

@tvolkert tvolkert merged commit 0af5602 into dart-archive:master May 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Dart 2 runtime failures in tests

3 participants