Files
kotlin-fork/compiler/testData/diagnostics/tests/functionLiterals/kt7383_starProjectedFunction.kt
T
2017-11-29 02:54:26 +03:00

8 lines
246 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() }
<!OI;MEMBER_PROJECTED_OUT!>f<!>(<!NI;CONSTANT_EXPECTED_TYPE_MISMATCH!>1<!>)
}