Files
kotlin-fork/compiler/testData/diagnostics/tests/functionLiterals/kt7383_starProjectedFunction.fir.kt
T
2020-09-14 17:56:39 +03:00

8 lines
204 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
// KT-7383 Assertion failed when a star-projection of function type is used
fun foo() {
val f : Function1<*, *> = { x -> x.toString() }
<!INAPPLICABLE_CANDIDATE!>f<!>(1)
}