crazy bug with constructing object of the same class as calling class
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
class B () {}
|
||||
|
||||
open class A(val b : B) {
|
||||
fun a() = object: A(b) {}
|
||||
}
|
||||
|
||||
fun box() : String {
|
||||
A(B()).a()
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user