Files
kotlin-fork/compiler/testData/diagnostics/tests/duplicateJvmSignature/traitImpl/twoTraits.kt
T
Andrey Breslav 55cfa161c7 Report conflicting signatures that are purely inherited from traits
When all signatures are inherited from traits, the origin elements lie outside of the class in question
2014-06-19 22:10:54 +04:00

11 lines
135 B
Kotlin

trait T1 {
fun getX() = 1
}
trait T2 {
val x: Int
get() = 1
}
class <!CONFLICTING_JVM_DECLARATIONS!>C<!> : T1, T2 {
}