Files
kotlin-fork/idea/testData/inspectionsLocal/redundantUnitExpression/dynamic2.kt
T

10 lines
209 B
Kotlin
Vendored

// PROBLEM: none
// ERROR: Unsupported [Dynamic types are not supported in this context]
fun foo() {
fun bar(f: () -> dynamic): Unit {}
bar({
val a = 1
Unit<caret>
})
}