Files
kotlin-fork/idea/testData/quickfix/addStarProjections/cast/changeFunctionalToStarProjection.kt
T
Mikhail Glukhikh d08b18f5f8 Introduce "use expression body" inspection #KT-16063 Fixed
Converted from the relevant intention
Reported cases: one-liners, whens
Also, more exact caret detection in local inspection tests
2017-07-07 18:15:06 +03:00

8 lines
235 B
Kotlin
Vendored

// "class org.jetbrains.kotlin.idea.quickfix.ChangeToStarProjectionFix" "false"
class Constructor<out T>(val x: T)
fun y() : Constructor<*> = Constructor(42)
fun x(): (String) -> String {
return y() as<caret> (String) -> String
}