Files
kotlin-fork/plugins/annotation-processing/testData/processors/Erasure2.kt
T
Yan Zhulanow c6c1673902 Kapt: load all annotations, even if annotation processors does not require it explicitly. Some annotation processors may want to process some more annotations (see DbFlow, Database annotation).
Blacklist some common-used Java and Kotlin annotations instead (like Deprecated, Nullable or Metadata).
(cherry picked from commit 6856a7c)
2016-09-10 17:36:15 +03:00

16 lines
353 B
Kotlin
Vendored

abstract class Base<A> {
fun baseF(): A = null!!
}
annotation class Anno
@Anno
class Test<T> : Base<Int>() {
fun a(): String = ""
fun b(i: String, b: CharSequence) {}
fun c(): Int = 5
fun d(): T = null!!
fun <D : Any> e(item: D): D = item
fun f(items: List<Map<String, Int>>, i: Int) {}
fun <D : String> g(item: D) {}
}