Capturing this in constructor context
KT-4086 VerifyError creating anonymous object in constructor #KT-4086 Fixed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
trait N
|
||||
|
||||
open class Base(n: N)
|
||||
|
||||
class Derived : Base(object: N{}) {
|
||||
|
||||
}
|
||||
|
||||
fun box() : String {
|
||||
Derived()
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user