[FIR] Add forgotten test data for old FE test
This commit is contained in:
@@ -0,0 +1,30 @@
|
|||||||
|
// !LANGUAGE: +NewInference
|
||||||
|
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE
|
||||||
|
|
||||||
|
interface I {
|
||||||
|
fun foo()
|
||||||
|
}
|
||||||
|
|
||||||
|
data class Pair<X, Y>(val fst: X, val snd: Y)
|
||||||
|
|
||||||
|
class A(f: Pair<Int, (I) -> Unit>? = null)
|
||||||
|
|
||||||
|
class B(f: ((I) -> Unit)? = null)
|
||||||
|
|
||||||
|
fun main() {
|
||||||
|
val cond = true
|
||||||
|
A(
|
||||||
|
if (cond) {
|
||||||
|
Pair(1, { baz -> baz.<!UNRESOLVED_REFERENCE!>foo<!>() })
|
||||||
|
} else {
|
||||||
|
null
|
||||||
|
}
|
||||||
|
)
|
||||||
|
<!INAPPLICABLE_CANDIDATE!>B<!>(
|
||||||
|
if (cond) {
|
||||||
|
{ baz -> baz.<!UNRESOLVED_REFERENCE!>foo<!>() }
|
||||||
|
} else {
|
||||||
|
null
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user