KT-3500: ClassFormatError: Duplicate method name&signature in class file && KT-3429: Traits override bug
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
trait A<T> {
|
||||
val property : T
|
||||
|
||||
open fun a() : T {
|
||||
return property
|
||||
}
|
||||
}
|
||||
|
||||
open class B : A<Any> {
|
||||
|
||||
override val property: Any = "fail"
|
||||
}
|
||||
|
||||
open class C : B(), A<Any> {
|
||||
|
||||
override val property: Any = "OK"
|
||||
}
|
||||
|
||||
fun box() : String {
|
||||
return C().a() as String
|
||||
}
|
||||
Reference in New Issue
Block a user