8dacd41818
From one side to check how annotation propagation works and from another side to cover scenarios with lazy resolution from type position as it is a valid case of usage in Analysis API (KtFirAnnotationListForType) ^KT-63042
19 lines
356 B
Kotlin
Vendored
19 lines
356 B
Kotlin
Vendored
package foo
|
|
|
|
class Arg
|
|
|
|
@Target(AnnotationTarget.TYPE)
|
|
annotation class Anno(val position: String)
|
|
const val constant = 0
|
|
|
|
fun interface Foo {
|
|
fun foo(a: @Anno("foo param type $constant") Arg): @Anno("foo return type $constant") Arg
|
|
}
|
|
|
|
fun testMe(f: @Anno("testMe param type $constant") Foo) {}
|
|
|
|
<expr>
|
|
fun resolveMe() {
|
|
testMe { b -> b }
|
|
}
|
|
</expr> |