Files
kotlin/compiler/testData/diagnostics/tests/functionLiterals/kt7383_starProjectedFunction.kt
Alexander Udalov 4d00077ffb Delete assertion on receiver presence in 'invoke'
#KT-6541 Fixed
 #KT-7383 Fixed
2015-05-26 15:04:59 +03:00

7 lines
195 B
Kotlin
Vendored

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