Files
kotlin-fork/compiler/testData/ir/irText/firProblems/AllCandidates.kt.txt
T
Dmitriy Novozhilov b454fcc1e0 [FIR] Save IR dumps to .ir.txt files instead of .txt in tests
This is needed to avoid clashes between different dumps from different
  handlers
2021-10-12 17:26:36 +03:00

32 lines
1.0 KiB
Plaintext
Vendored

class ResolvedCall<C : Any?> {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
}
class MyCandidate {
constructor(resolvedCall: ResolvedCall<*>) /* primary */ {
super/*Any*/()
/* <init>() */
}
val resolvedCall: ResolvedCall<*>
field = resolvedCall
get
}
private fun <A : Any?> allCandidatesResult(allCandidates: Collection<MyCandidate>): @FlexibleNullability OverloadResolutionResultsImpl<@FlexibleNullability A?>? {
return nameNotFound<@FlexibleNullability A?>().apply<@FlexibleNullability OverloadResolutionResultsImpl<@FlexibleNullability A?>?>(block = local fun @FlexibleNullability OverloadResolutionResultsImpl<@FlexibleNullability A?>?.<anonymous>() {
$this$apply /*!! OverloadResolutionResultsImpl<@FlexibleNullability A?> */.setAllCandidates<@FlexibleNullability A?>(allCandidates = allCandidates.map<MyCandidate, ResolvedCall<A>>(transform = local fun <anonymous>(it: MyCandidate): ResolvedCall<A> {
return it.<get-resolvedCall>() as ResolvedCall<A>
}
))
}
)
}