30 lines
543 B
Kotlin
Vendored
30 lines
543 B
Kotlin
Vendored
interface NoC {
|
|
<error>init {
|
|
|
|
}</error>
|
|
|
|
val a : Int get() = 1
|
|
|
|
<error>init {
|
|
|
|
}</error>
|
|
}
|
|
|
|
class WithC() {
|
|
val x : Int
|
|
init {
|
|
<warning descr="[BACKING_FIELD_USAGE_DEPRECATED] Backing field usage is deprecated here, soon it will be possible only in property accessors">$x</warning> = 1
|
|
<error>$y</error> = 2
|
|
val <warning>b</warning> = x
|
|
|
|
}
|
|
|
|
val a : Int get() = 1
|
|
|
|
init {
|
|
val <warning>z</warning> = <error>b</error>
|
|
val <warning>zz</warning> = x
|
|
val <warning>zzz</warning> = <error>$a</error>
|
|
}
|
|
|
|
} |