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

refine type check in _recursivelyAddAll to prevent type error #677

Merged

Conversation

vemarav
Copy link
Contributor

@vemarav vemarav commented Jun 24, 2020

Fixed #676

vemarav added 7 commits June 24, 2020 19:00
type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, dynamic>' in type cast
type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, dynamic>' in type cast
@micimize micimize changed the title Modularization refine type check in _recursivelyAddAll to prevent type error Jun 24, 2020
@micimize micimize merged commit 1275c10 into zino-hofmann:modularization Jun 24, 2020
@micimize
Copy link
Collaborator

micimize commented Jun 24, 2020

Oh wait, I'm going to have to investigate this a bit more. If the keys of target[key] are of type dynamic, then target[key] is Map<String, dynamic> will fail. So, this might be solving the error, might also be totally breaking _recursivelyAddAll

edit: investigated and added tests, and it is fine

@vemarav
Copy link
Contributor Author

vemarav commented Jun 24, 2020

@micimize 👍

@HofmannZ
Copy link
Member

HofmannZ commented Oct 7, 2020

🎉 This PR is included in version 4.0.0-beta.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@HofmannZ
Copy link
Member

🎉 This PR is included in version 4.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@vemarav vemarav deleted the modularization branch March 25, 2024 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants