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

Fix impl of memory directory's _renameSync. #66

Merged
merged 5 commits into from
Jan 19, 2018

Conversation

srawlins
Copy link
Contributor

Fixes dart-lang/tools#620.

In the first commit of PR #63, I think analyzer should have warned me that the _RenameOverwriteValidator<_DirectoryNode> callback was being passed a _Node, but it didn't! dart-lang/sdk#31410 I think. simplified dartpad

The alternative to this fix is type-annotating _renameSync with a T, and declaring validateOverwriteExistingEntity to be a _RenameOverwriteValidator<T>.

@srawlins
Copy link
Contributor Author

I think Travis is a flake? I saw a similar error locally which was transient.

@srawlins
Copy link
Contributor Author

OK I genericized _renameSync. Analyzer is happy; tests are happy.

Be sure to squash my 100 commits! And I'd use the last message for the squashed commit message.

@srawlins
Copy link
Contributor Author

Friendly ping.

Copy link
Contributor

@tvolkert tvolkert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tvolkert tvolkert merged commit 5f99e6b into dart-archive:master Jan 19, 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.

_Node is wrong type annotation for validateOverwriteExistingEntity
2 participants