[FIR] KT-58674: Set expected type for loop conditions
^KT-58674 Fixed
This commit is contained in:
committed by
Space Team
parent
737c8c20f6
commit
fd54706e1a
@@ -2,13 +2,13 @@
|
||||
// INFERENCE_HELPERS
|
||||
|
||||
fun test() {
|
||||
while (<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>materialize<!>()) { // K1: OK, K2: NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER
|
||||
while (materialize()) {
|
||||
|
||||
}
|
||||
|
||||
do {
|
||||
|
||||
} while (<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>materialize<!>()) // K1: OK, K2: NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER
|
||||
} while (materialize())
|
||||
|
||||
if (materialize()) {
|
||||
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
// INFERENCE_HELPERS
|
||||
|
||||
fun test() {
|
||||
while (materialize()) { // K1: OK, K2: NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER
|
||||
while (materialize()) {
|
||||
|
||||
}
|
||||
|
||||
do {
|
||||
|
||||
} while (materialize()) // K1: OK, K2: NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER
|
||||
} while (materialize())
|
||||
|
||||
if (materialize()) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user