Open SasinduDilshara opened 2 months ago
May be related to https://github.com/ballerina-platform/ballerina-library/issues/6924
Similar issue is happen for following code as well.
A41|error a41 = xmldata:parseAsType(x4);
test:assertEquals(a41, {"B":{"#content":"Nested Content","b1":99,"b2":"45.67"}});
Code
The output for the above code is
{"id":null,"#content":1}
. It should be an error message likeincompatible types