[FIR] Add tests for KT-50386 and KT-50646

This commit is contained in:
Dmitriy Novozhilov
2023-02-13 14:28:51 +02:00
committed by Space Team
parent 092ebf4c11
commit 8ae5213155
8 changed files with 189 additions and 0 deletions
@@ -0,0 +1,10 @@
// 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 }
}