[inspections] fix false positive "Redundant Unit" inspection in lambda with dynamic return type

^KT-40700 Fixed
This commit is contained in:
Dmitry Gridin
2020-10-07 15:15:34 +07:00
parent 26d03295cf
commit 9a0c3c47c8
10 changed files with 138 additions and 8 deletions
@@ -0,0 +1,10 @@
// PROBLEM: none
// ERROR: Unsupported [Dynamic types are not supported in this context]
fun foo() {
fun bar(f: (Int) -> dynamic): Unit {}
bar {
val a = 1
Unit<caret>
}
}