Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/completeInferenceIfManyFailed.fir.kt
T
Dmitriy Novozhilov f283f2db43 [FIR] Improve diagnostic reporting & don't use error symbol for candidate if possible
Also introduce few new diagnostics:
- NONE_APPLICABLE more many inapplicable candidates
- HIDDEN for visible candidates
2020-07-28 20:46:56 +03:00

18 lines
309 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
// !CHECK_TYPE
package d
fun <T: Any> joinT(x: Int, vararg a: T): T? {
return null
}
fun <T: Any> joinT(x: Comparable<*>, y: T): T? {
return null
}
fun test() {
val x2 = <!NONE_APPLICABLE!>joinT<!>(Unit, "2")
<!INAPPLICABLE_CANDIDATE!>checkSubtype<!><String?>(x2)
}