-
Notifications
You must be signed in to change notification settings - Fork 743
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
[Master] Fix Invalid type inferring for literal expression #38029
[Master] Fix Invalid type inferring for literal expression #38029
Conversation
217079e
to
d215863
Compare
...erina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeChecker.java
Outdated
Show resolved
Hide resolved
...erina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeChecker.java
Outdated
Show resolved
Hide resolved
...erina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeChecker.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the fix is correct. Please check the comments on the test changes.
tests/jballerina-unit-test/src/test/resources/test-src/types/finite/finite-type.bal
Outdated
Show resolved
Hide resolved
tests/jballerina-unit-test/src/test/resources/test-src/statements/ifelse/type-guard.bal
Outdated
Show resolved
Hide resolved
.../jballerina-unit-test/src/test/resources/test-src/statements/assign/assign-stmt-negative.bal
Outdated
Show resolved
Hide resolved
will check. Thanks. |
d215863
to
510c79e
Compare
Updated the PR. Please check. |
...nit-test/src/test/java/org/ballerinalang/test/types/constant/SimpleConstantNegativeTest.java
Outdated
Show resolved
Hide resolved
.../jballerina-unit-test/src/test/resources/test-src/statements/assign/assign-stmt-negative.bal
Outdated
Show resolved
Hide resolved
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #38029 +/- ##
==========================================
Coverage 76.35% 76.35%
- Complexity 52258 52301 +43
==========================================
Files 2865 2866 +1
Lines 197494 197635 +141
Branches 25656 25687 +31
==========================================
+ Hits 150791 150913 +122
- Misses 38398 38413 +15
- Partials 8305 8309 +4
☔ View full report in Codecov by Sentry. |
...est/src/test/resources/test-src/expressions/literals/numeric_literal_assignment_negative.bal
Outdated
Show resolved
Hide resolved
...est/src/test/resources/test-src/expressions/literals/numeric_literal_assignment_negative.bal
Outdated
Show resolved
Hide resolved
...est/src/test/resources/test-src/expressions/literals/numeric_literal_assignment_negative.bal
Outdated
Show resolved
Hide resolved
...na-unit-test/src/test/resources/test-src/expressions/literals/numeric_literal_assignment.bal
Outdated
Show resolved
Hide resolved
49ef871
to
ba34736
Compare
...est/src/test/resources/test-src/expressions/literals/numeric_literal_assignment_negative.bal
Show resolved
Hide resolved
...erina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeChecker.java
Outdated
Show resolved
Hide resolved
961f468
to
7780a3e
Compare
This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the |
Closed PR due to inactivity for more than 18 days. |
@SasinduDilshara can you bring this to buldable state |
88a331d
to
a6f7948
Compare
...erina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeChecker.java
Show resolved
Hide resolved
...erina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeChecker.java
Outdated
Show resolved
Hide resolved
...erina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeChecker.java
Outdated
Show resolved
Hide resolved
...unit-test/src/test/java/org/ballerinalang/test/bala/literals/NumericLiteralNegativeTest.java
Outdated
Show resolved
Hide resolved
This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the |
Purpose
Fixes #37750
Fixes #38270
Fixes #38498
Fixes #38499
Check List