mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
Blacklist some common-used Java and Kotlin annotations instead (like Deprecated, Nullable or Metadata).
(cherry picked from commit 6856a7c)
18 lines
295 B
Kotlin
Vendored
18 lines
295 B
Kotlin
Vendored
annotation class Anno
|
|
|
|
@Anno
|
|
open class Parent {
|
|
open fun a() {}
|
|
}
|
|
|
|
open class Child : Parent() {
|
|
override fun a() {}
|
|
fun a(name: String) {}
|
|
open fun b() = "A"
|
|
}
|
|
|
|
class ChildOfChild : Child() {
|
|
override fun a() {}
|
|
override fun b() = "B"
|
|
fun a(name: CharSequence) {}
|
|
} |