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

Fix runtime errors in recording_test #85

Merged
merged 2 commits into from May 9, 2018

Conversation

srawlins
Copy link
Collaborator

@srawlins srawlins commented May 2, 2018

Fixes #84

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
Collaborator Author

srawlins commented May 2, 2018

CC @tvolkert all checks are passed.

@keertip
Copy link
Collaborator

keertip commented May 9, 2018

@tvolkert @matanlurey

@tvolkert tvolkert merged commit 0af5602 into google:master May 9, 2018
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

Successfully merging this pull request may close these issues.

None yet

3 participants