[Bug]: Inconsistent runtime error messages when trying to modify a readonly
record field
#42520
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
An error message inconsistency can be observed when keeping and removing an unused function. Since the existence and removal of a dead function should not affect the runtime, this behavior can be considered as inconsistent.
Steps to Reproduce
Run the following code snippet with
bal run
.You will get the following error,
Modify the source code as follows and run again. You can either comment or delete the lines.
You will get the following error message,
Affected Version(s)
Ballerina 2201.9.0 SNAPSHOT
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: