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