mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
16 lines
188 B
Kotlin
Vendored
16 lines
188 B
Kotlin
Vendored
// MODULE: lib
|
|
// FILE: lib.kt
|
|
|
|
// KT-34273
|
|
|
|
class Foo(val str: String)
|
|
|
|
private val foo1 = Foo("OK")
|
|
|
|
val foo2 = foo1
|
|
|
|
// MODULE: main(lib)
|
|
// FILE: main.kt
|
|
|
|
fun box(): String = foo2.str
|