Files
kotlin-fork/compiler/testData/diagnostics/tests/functionLiterals/kt7383_starProjectedFunction.kt
T
2021-05-25 13:28:27 +03:00

7 lines
190 B
Kotlin
Vendored

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