Migrate CompileKotlinAgainstKotlin test to multi-file framework
This commit is contained in:
committed by
Alexander Udalov
parent
5884d4be79
commit
cc8af573f9
@@ -0,0 +1,20 @@
|
||||
// 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 main(args: Array<String>) {
|
||||
Outer().testExt()
|
||||
}
|
||||
Reference in New Issue
Block a user