Files
kotlin/compiler/testData/codegen/box/privateConstructors/inline.kt
2019-11-19 11:00:09 +03:00

12 lines
239 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// See also KT-6299
public open class Outer private constructor() {
companion object {
internal inline fun foo() = Outer()
}
}
fun box(): String {
val outer = Outer.foo()
return "OK"
}