[inspections] fix false positive "Redundant Unit" inspection in lambda with dynamic return type
^KT-40700 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// 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>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user