5a1a23afac
^KT-59874
17 lines
363 B
Kotlin
Vendored
17 lines
363 B
Kotlin
Vendored
package low
|
|
|
|
@Target(AnnotationTarget.EXPRESSION)
|
|
@Retention(AnnotationRetention.SOURCE)
|
|
annotation class Anno(val position: String)
|
|
|
|
const val constant = 0
|
|
|
|
class MyClass {
|
|
@Anno("init annotation: $constant") i<caret>nit {
|
|
@Anno("annotation inside")
|
|
funInsideInit()
|
|
}
|
|
}
|
|
|
|
fun anotherFun(): String = "str"
|
|
fun funInsideInit() = anotherFun() |