92f1681de0
Report error on value classes without @JvmInline annotation. Do not check for @JvmInline annotation in value classes since it breaks reflection.
20 lines
500 B
Kotlin
Vendored
20 lines
500 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !LANGUAGE: +InlineClasses
|
|
|
|
package kotlin
|
|
|
|
annotation class JvmInline
|
|
|
|
@JvmInline
|
|
value class UInt(val x: Int)
|
|
|
|
@JvmInline
|
|
value class UIntArray(private val storage: IntArray) : Collection<UInt> {
|
|
public override val size: Int get() = storage.size
|
|
|
|
override operator fun iterator() = TODO()
|
|
override fun contains(element: UInt): Boolean = TODO()
|
|
override fun containsAll(elements: Collection<UInt>): Boolean = TODO()
|
|
override fun isEmpty(): Boolean = TODO()
|
|
}
|