KT-3702: Inner class constructor cannot be invoked in override function with receiver
KT-3532: NoSuchMethodError when constructing Java inner class KT-3847: Class is not recognized as inner when loaded from binaries #KT-3702 Fixed #KT-3532 Fixed #KT-3847 Fixed
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
public class kt3532 {
|
||||
public class Inner { }
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
fun box(): String {
|
||||
kt3532().Inner()
|
||||
return "OK"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
//test for KT-3702 Inner class constructor cannot be invoked in override function with receiver
|
||||
package second
|
||||
|
||||
public class Outer() {
|
||||
inner class Inner(test: String)
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
//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