Files
kotlin-fork/compiler/testData/cli/jvm/signatureClash.kt
T
2015-02-27 20:30:51 +03:00

35 lines
448 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 `access$f$0`(c: C) {}
class Nested {
fun test() {
C().f()
}
}
}