Files
kotlin-fork/plugins/jvm-abi-gen/testData/compile/privateValueClassConstructor/lib/lib.kt
T
Steven Schäfer 78d80181e2 inlineClassUtils: Fix handling of inline classes without constructors
Fixes KT-50992

DeclarationDescriptor.isInlineClass misidentifies inline classes without
constructors. This can happen for the ABI of inline classes with private
constructors.
2022-02-04 23:30:24 +01:00

8 lines
151 B
Kotlin
Vendored

package lib
@JvmInline
value class A private constructor(val value: String) {
companion object { fun a() = A("OK") }
inline fun b() = value
}