ballerina-lang
ballerina-lang copied to clipboard
[Bug]: Bad Sad error when a constant is missing
trafficstars
Description
I got a bad sad error in the following scenario.
- Define a Ballerina file with constants
- Define a const json, c1
- Use that constant in another constant in the same file c2
- Now remove the first constant c1
Compiler does not give an error as c1 not found. During runtime it gives a bad sad error.
Steps to Reproduce
No response
Affected Version(s)
No response
OS, DB, other environment details and versions
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response