-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Incorrect target type for arrays when disabling coercion #3690
Comments
You are probably correct: coercion checks are more likely to be correct and exception incorrect. |
Looking back at the exception message, it isn't actually wrong:
since it specifies ELEMENT of that type (which from signature is |
When disabling coercions and providing a wrong type on an array element, the error message is specifying that we are trying to coerce the type of the array when it should mention we are trying to coerce the type of the element of the array. See the example below.
Related to #3240.
Probably similar to #2567?
The text was updated successfully, but these errors were encountered: