Files
kotlin/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/iterable.kt
Dmitry Petrov b1bd138afb JVM_IR fix inline class <-> collection stubs issues
Move collectionStubMethodLowering before jvmInlineClassPhase, and make
them interact properly.

Note that some issues still remain in inline class <-> special bridges
interaction.

KT-40187 KT-42469
2020-10-06 17:08:24 +03:00

8 lines
187 B
Kotlin
Vendored

// IGNORE_ANNOTATIONS
inline class IT(val x: Int)
inline class InlineIterable(private val it: Iterable<IT>) : Iterable<IT> {
override fun iterator(): Iterator<IT> = it.iterator()
}