Files
kotlin-fork/plugins/kapt3/testData/converter/topLevel.kt
T
Yan Zhulanow 1f1491f1ca Kapt3: Fix a number of errors in ClassFileToSourceStubConverter:
1. Support strictfp modifier for methods.
2. Support Kotlin top-level methods and properties.
3. Fix visibility modifiers on enum methods.
2016-12-05 19:57:41 +03:00

21 lines
507 B
Kotlin
Vendored

package test.another
annotation class Anno(val value: String)
fun topLevelFunction(): String? = null
fun <X : CharSequence, T : List<out X>> topLevelGenericFunction(): T? {
return null!!
}
val topLevelProperty = 2
val topLevelProperty2: String
get() = ""
fun @receiver:Anno("rec") String.extensionFunction(@Anno("1") a: String, @Anno("2") b: String) {}
@Anno("extpr")
var <T: Any> @receiver:Anno("propRec") T.extensionProperty: String
get() = ""
set(@Anno("setparam") setParamName) {}