Files
kotlin/compiler/testData/diagnostics/tests/functionLiterals/kt7383_starProjectedFunction.kt
2016-01-19 11:05:41 +03:00

7 lines
179 B
Kotlin
Vendored

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