Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/callResolution/overloadsWithGenericAndGenericLambda.kt
T
2023-02-14 17:08:54 +00:00

11 lines
192 B
Kotlin
Vendored

// ISSUE: KT-50646
class Inv<T>
fun <T> foo(c: Inv<T>, f: () -> T) {}
fun <T> foo(c: Inv<T>, v: T) {}
fun <T> test(x: Inv<T>, v: T) {
<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo<!>(x) { v }
}