Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/visibility/visibilityWithOverrides.kt
T
pyos e6d923f65c FIR: rename HIDDEN to INVISIBLE_REFERENCE
Some of them should be INVISIBLE_MEMBER though
2021-04-21 16:18:21 +03:00

24 lines
383 B
Kotlin
Vendored

// ISSUE: KT-38656
// FILE: B.kt
class B : A() {
override fun foo(s: String): String = ""
fun testProtected(): String {
return this foo "hello"
}
}
// FILE: A.kt
abstract class A {
protected abstract infix fun foo(s: String): String
}
// FILE: main.kt
fun test(b: B): String {
return b <!INVISIBLE_REFERENCE!>foo<!> "hello" // should be an error
}