mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
17 lines
276 B
Kotlin
Vendored
17 lines
276 B
Kotlin
Vendored
package d
|
|
|
|
class T {
|
|
fun baz() = 1
|
|
}
|
|
|
|
<!WRONG_MODIFIER_TARGET!>override<!> fun zzz() {}
|
|
|
|
fun foo(t: T) {
|
|
<!WRONG_MODIFIER_TARGET!>override<!> fun T.<!EXTENSION_SHADOWED_BY_MEMBER!>baz<!>() = 2
|
|
|
|
// was "Visibility is unknown yet exception"
|
|
t.baz()
|
|
|
|
zzz()
|
|
}
|