35 lines
450 B
Kotlin
Vendored
35 lines
450 B
Kotlin
Vendored
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
|
|
|
|
interface 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`(c: C) {}
|
|
|
|
class Nested {
|
|
|
|
fun test() {
|
|
C().f()
|
|
}
|
|
}
|
|
}
|