13 lines
236 B
Kotlin
Vendored
13 lines
236 B
Kotlin
Vendored
package a
|
|
|
|
//KT-2240 Wrong overload resolution ambiguity when object literal is involved
|
|
|
|
class A {}
|
|
|
|
fun <T> A.foo(<!UNUSED_PARAMETER!>f<!> : T) {}
|
|
|
|
val o = object {
|
|
fun <T> foo(f: T) {
|
|
A().foo(f) // Ambiguity here!
|
|
}
|
|
} |