1f1491f1ca
1. Support strictfp modifier for methods. 2. Support Kotlin top-level methods and properties. 3. Fix visibility modifiers on enum methods.
21 lines
507 B
Kotlin
Vendored
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) {} |