58c6c25fe9
KtCallResolver.resolveCandidates() and copy over remaining tests.
15 lines
272 B
Kotlin
Vendored
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) }
|
|
}
|