Files
kotlin/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/privateConstructor.kt
2018-09-10 10:42:18 +03:00

12 lines
247 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JVM_IR
inline class S(val string: String)
class Outer private constructor(val s: S) {
class Nested {
fun test(s: S) = Outer(s)
}
}
fun box() = Outer.Nested().test(S("OK")).s.string