Files
kotlin-fork/compiler/testData/diagnostics/tests/scopes/kt323.kt
T
2018-05-04 18:04:57 +03:00

18 lines
407 B
Kotlin
Vendored

//KT-323 Handle visibility interactions with overriding
package kt323
open class A {
open var a : Int = 0
}
class B : A() {
override <!VAR_OVERRIDDEN_BY_VAL!>val<!> a = 34
var b : Int
<!REDUNDANT_MODIFIER_IN_GETTER!>public<!> get() = 23
set(<!UNUSED_PARAMETER!>i<!>: Int) {}
protected var c : Int
get() = 23
private set(<!UNUSED_PARAMETER!>i<!>: Int) {}
}