Files
kotlin-fork/analysis/analysis-api/testData/components/callResolver/resolveCandidates/singleCandidate/builderInference.kt
T
Mark Punzalan 58c6c25fe9 Analysis API: Handle other FirElements in
KtCallResolver.resolveCandidates() and copy over remaining tests.
2022-02-11 13:22:58 +01:00

15 lines
272 B
Kotlin
Vendored

// WITH_STDLIB
package test
class Target<T> {
fun add(t: T) {}
}
fun <T> buildTarget(@BuilderInference block: Target<T>.() -> Unit): Target<T> {
return Target<T>().apply { block() }
}
fun test(s: String) {
val result = buildTarget { <expr>add</expr>(s) }
}