Files
kotlin-fork/compiler/testData/compileKotlinAgainstKotlin/innerClassConstructor.kt
T
Alexander Udalov 9f67fe2fe3 Adapt CompileKotlinAgainstKotlin test to black box format
Rename/remove some obsolete test cases
2016-03-02 15:47:35 +03:00

22 lines
328 B
Kotlin
Vendored

// FILE: A.kt
package second
public class Outer() {
inner class Inner(test: String)
}
// 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"
}