Incorrect behavior of member access on xml with key value < 0 #35980
Labels
Lang/XML
XML design related issues
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
Milestone
Description:
$title.
As per the spec when the evaluated value of the container expression is an
xml
andand k is < 0, then the evaluation completes abruptly with a panic
(i.e. key-expression is evaluated to get a value k)
But ATM, this result is an empty xml value.
Steps to reproduce:
Affected Versions:
Ballerina 2201.0.2
The text was updated successfully, but these errors were encountered: