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

Std.is and Map #3

Open
kevinresol opened this issue Jun 12, 2016 · 1 comment
Open

Std.is and Map #3

kevinresol opened this issue Jun 12, 2016 · 1 comment

Comments

@kevinresol
Copy link
Member

Map is an abstract so Std.is won't work on it, need to be fixed:

return macro if(!Std.is(value, Map)) throw tink.validation.Error.UnexpectedType(Map, value) else value;

@back2dos
Copy link
Member

You can check against haxe.Constraints.IMap or whatever it's called. And don't forget to use the k and v to check the contents ;)

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

No branches or pull requests

2 participants