Files
kotlin-fork/compiler/testData/diagnostics/tests/kt54587_2.kt
T
Nikolay Lunyak a454d42e65 [FIR] KT-54587: Report the missing diagnostics
^KT-54587 Fixed

Merge-request: KT-MR-7791
Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com>
2022-11-25 10:19:58 +00:00

18 lines
326 B
Kotlin
Vendored

// FIR_IDENTICAL
package one
fun test(f: NextMissing) {
for(i in <!NEXT_NONE_APPLICABLE!>f<!>) {} //[NEXT_NONE_APPLICABLE] is expected as in K1
}
interface Doo
operator fun Doo.next() {}
interface NextMissing {
operator fun iterator(): NextMissing2
}
interface NextMissing2 {
operator fun hasNext(): Boolean
}