[Bug]: cloneWithType
returns error for readonly records
#41378
Labels
Reason/EngineeringMistake
The issue occurred due to a mistake made in the past.
Team/jBallerina
All the issues related to BIR, JVM backend code generation and runtime
Type/Bug
Description
$subject
Steps to Reproduce
The above code returns an error as follows
Expected output is
The parallel to
cloneWithType
should behave similarly to creating the value with a constructor at compile-time.Affected Version(s)
2201.7.2
OS, DB, other environment details and versions
No response
Related area
-> Runtime
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: