24 lines
364 B
Kotlin
Vendored
24 lines
364 B
Kotlin
Vendored
// MODULE: lib
|
|
// FILE: A.kt
|
|
|
|
package second
|
|
|
|
public class Outer() {
|
|
inner class Inner(test: String)
|
|
}
|
|
|
|
// MODULE: main(lib)
|
|
// FILE: B.kt
|
|
|
|
//test for KT-3702 Inner class constructor cannot be invoked in override function with receiver
|
|
import second.Outer
|
|
|
|
fun Outer.testExt() {
|
|
Inner("test")
|
|
}
|
|
|
|
fun box(): String {
|
|
Outer().testExt()
|
|
return "OK"
|
|
}
|