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

14 lines
338 B
Kotlin
Vendored

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