You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import ballerina/data.xmldata;
import ballerina/io;
public function main() returns error? {
record {string:RegExp \#content;}|error rec5 = xmldata:parseAsType(xml `<A>42</A>`);
io:println(rec5);
}
This code gives
error Error ("class java.lang.Long cannot be cast to class io.ballerina.runtime.internal.values.RegExpValue (java.lang.Long is in module java.base of loader 'bootstrap'; io.ballerina.runtime.internal.values.RegExpValue is in unnamed module of loader 'app')")
The text was updated successfully, but these errors were encountered:
This code gives
The text was updated successfully, but these errors were encountered: