[Bug]: Syntax is wrong for on fail check expression #41094
Labels
Reason/EngineeringMistake
The issue occurred due to a mistake made in the past.
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/Bug
userCategory/Compilation
Description
According to this, ballerina-platform/ballerina-spec#1197 (comment)
check E on fail x => F
F is an expression but at the moment in the, parser considering it as error-contructor-expression which is wrong.
Steps to Reproduce
No response
Affected Version(s)
on-fail-check feature branch
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
The text was updated successfully, but these errors were encountered: