-
Notifications
You must be signed in to change notification settings - Fork 53
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
Result of calling langlib methods on immutable values #646
Comments
A langlib function like So in general if the argument type is |
#187 should say something about this. |
Noted, thank you. |
Description:
When langlib methods that create new values are called on immutable values, will the resultant value also be immutable?
For example, where
arr
isshould the static type and the inherent type of the value created by
be
int[]
orint[] & readonly
?Based on #551 (comment), do we only consider the element type and not the read-only bit of the array type itself?
Related Issues:
#391
#551
The text was updated successfully, but these errors were encountered: