-
Notifications
You must be signed in to change notification settings - Fork 39
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
Fixed bug related to assigning to declared vals inside null-check branches #1851
Conversation
…nches ### What's done: - Fixed bug related to case when `if-else` block inside `init` or 'run', 'with', 'apply' blocks and there is more than one statement inside 'else' block. This case leads to kotlin compilation error after adding 'run' block instead of 'else' block. Read https://youtrack.jetbrains.com/issue/KT-64174 for more information. - Added new warning tests. Closes #1844
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1851 +/- ##
============================================
+ Coverage 78.42% 78.44% +0.01%
- Complexity 2442 2455 +13
============================================
Files 133 133
Lines 8632 8644 +12
Branches 2179 2184 +5
============================================
+ Hits 6770 6781 +11
Misses 896 896
- Partials 966 967 +1 ☔ View full report in Codecov by Sentry. |
JUnit Tests (macOS, EnricoMi/publish-unit-test-result-action@v2) 164 files ±0 164 suites ±0 8m 11s ⏱️ + 2m 57s Results for commit d9d97c9. ± Comparison against base commit 0390093. ♻️ This comment has been updated with latest results. |
JUnit Tests (Windows, EnricoMi/publish-unit-test-result-action@v2) 164 files ±0 164 suites ±0 7m 14s ⏱️ +23s Results for commit d9d97c9. ± Comparison against base commit 0390093. ♻️ This comment has been updated with latest results. |
What's done:
if-else
block insideinit
orrun
,with
,apply
blocks and there is more than one statement insideelse
block. This case leads to kotlin compilation error after addingrun
block instead ofelse
block. Read https://youtrack.jetbrains.com/issue/KT-64174 for more information.Closes #1844