8500ee08a8
The constraint system for the old type inference is going to be removed. Also, `CONSTRAINT_SYSTEM_FOR_OVERLOAD_RESOLUTION` isn't used in the production
24 lines
255 B
Kotlin
Vendored
24 lines
255 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
// FILE: a.kt
|
|
|
|
package a
|
|
|
|
fun <T> foo(block: (T?) -> Unit) {}
|
|
|
|
// FILE: b.kt
|
|
|
|
package b
|
|
|
|
fun <K> foo(block: (K) -> Unit) {}
|
|
|
|
// FILE: test.kt
|
|
|
|
import a.*
|
|
import b.*
|
|
|
|
fun main() {
|
|
foo<String> { }
|
|
}
|