[FIR] KT-58674: Set expected type for loop conditions

^KT-58674 Fixed
This commit is contained in:
Nikolay Lunyak
2023-05-15 11:54:39 +03:00
committed by Space Team
parent 737c8c20f6
commit fd54706e1a
4 changed files with 10 additions and 8 deletions
@@ -217,7 +217,7 @@ FILE: forLoopChecker.kt
{
lval <iterator>: R|ImproperIterator3| = R|<local>/notRange5|.R|/NotRange5.iterator|()
while(R|<local>/<iterator>|.R|/ImproperIterator3.hasNext|()) {
while(R|<local>/<iterator>|.R|/ImproperIterator3.hasNext<CS errors: /ImproperIterator3.hasNext>#|()) {
lval i: R|kotlin/Int| = R|<local>/<iterator>|.R|/ImproperIterator3.next|()
{
}
@@ -239,7 +239,7 @@ FILE: forLoopChecker.kt
{
lval <iterator>: R|ImproperIterator3| = R|<local>/notRange7|.R|/NotRange7.iterator|()
while(R|<local>/<iterator>|.R|/ImproperIterator3.hasNext|()) {
while(R|<local>/<iterator>|.R|/ImproperIterator3.hasNext<CS errors: /ImproperIterator3.hasNext>#|()) {
lval i: R|kotlin/Int| = R|<local>/<iterator>|.R|/ImproperIterator3.next|()
{
}