Files
kotlin-fork/idea/testData/inspectionsLocal/unusedLambdaExpressionBody/inEnumEntry.kt
T
Toshiaki Kameyama a65304556c CFG: provide "used as expression" in enum constant constructor
This allows to avoid
"unused return value of a function with lambda expression body"
for such a situation
So #KT-20429 Fixed
2017-12-28 20:31:42 +03:00

7 lines
108 B
Kotlin
Vendored

// PROBLEM: none
enum class Test(f: () -> Unit) {
A(<caret>getFunc())
}
fun getFunc(): () -> Unit = {}