Files
kotlin-fork/compiler/testData/diagnostics/tests/multimodule/duplicateClass/collectionMethodStub.kt
T
Ilya Kirillov 1bbcae5ed2 [FIR] fix resolve contract violation from scopes
We cannot call lazy resolve to STATUS phase from scopes as scopes may be accessed on a STATUS phase or earlier

^KT-54890
^KTIJ-23587 fixed
2023-01-13 21:32:51 +00:00

23 lines
383 B
Kotlin
Vendored

// FIR_IDENTICAL
// SKIP_TXT
// FILE: f1.kt
package kotlin
class Unit
// FILE: f2.kt
class C: MutableIterator<Int> {
override fun remove(): Unit {
throw UnsupportedOperationException()
}
override fun next(): Int {
throw UnsupportedOperationException()
}
override fun hasNext(): Boolean {
throw UnsupportedOperationException()
}
}