-
Notifications
You must be signed in to change notification settings - Fork 55
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
Parameter type of clone and cloneReadOnly #531
Labels
Area/Lang
Relates to the Ballerina language specification
spec/incorrect
Mistake in spec affecting substance
Milestone
Comments
jclark
changed the title
Getting a readonly clone of an existing array of errors.
Parameter type of clone and cloneReadOnly
May 29, 2020
The argument type of
we should have:
|
@hasithaa Note that this also needs to apply to other places where the spec used
Since it is generally useful, I made it public in |
This was referenced Jun 18, 2020
Please help clarify. Current spec is updated as below.
Shouldn't this be changed to
|
Yes, it should be changed |
Thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area/Lang
Relates to the Ballerina language specification
spec/incorrect
Mistake in spec affecting substance
Description:
There is a requirement to use an existing
array of errors
in the detail record of an error.Since
error[]
does not match withanydata
(#463), this has to match withreadonly
.While we can create an
readonly array
:There is not a way to create a readonly copy of an existing
array of errors
.This
cloneReadOnly
params are ofanydata|readonly
.Do we need to provide a mechanism to support this?
The text was updated successfully, but these errors were encountered: