-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support union type #20
Support union type #20
Conversation
native/src/main/java/io/ballerina/lib/data/jsondata/json/JsonParser.java
Outdated
Show resolved
Hide resolved
native/src/main/java/io/ballerina/lib/data/jsondata/json/JsonParser.java
Outdated
Show resolved
Hide resolved
native/src/main/java/io/ballerina/lib/data/jsondata/json/JsonParser.java
Outdated
Show resolved
Hide resolved
Shall we add a test with never and error |
Since both of these are not a subtype of anydata, we will get compile-time error. |
This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the |
Shall we add tests with a scenario that, union type as a expected type and it match not with source |
Shall we add a test with union of singleton types |
Already we have test for that https://github.com/ballerina-platform/module-ballerina-data.jsondata/blob/main/ballerina/tests/from_json_string_test.bal#L1051 |
Purpose
Fixes: #6261
Examples
Checklist