KT-2963 VerifyError using traits with required classes
#KT-2963 Fixed
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
open class Base
|
||||
|
||||
trait Derived : Base {
|
||||
fun foo(): String {
|
||||
return object {
|
||||
fun bar() = baz(this@Derived)
|
||||
}.bar()
|
||||
}
|
||||
}
|
||||
|
||||
class DerivedImpl : Derived, Base()
|
||||
|
||||
fun baz(b: Base) = "OK"
|
||||
|
||||
fun box() = DerivedImpl().foo()
|
||||
Reference in New Issue
Block a user