Files
kotlin-fork/compiler/testData/cli/jvm/signatureClash.kt
T
2014-06-20 15:51:47 +04:00

34 lines
442 B
Kotlin

open class B {
val x = 1
}
class A : B() {
fun getX() = 1
fun getA(): Int = 1
val a: Int = 1
}
fun getB(): Int = 1
val b: Int = 1
trait Tr {
fun getTr() = 1
}
class SubTr : Tr {
val tr = 1
}
// Clashing synthetic accessors are only reported in compiler, IDE doesn't see them
class C {
private fun f() {}
fun `f$b$0`(c: C) {}
class Nested {
fun test() {
C().f()
}
}
}