Exclude reporting IMPLICIT_NOTHING_AS_TYPE_PARAMETER warning for suspend lambdas

^KT-36101 Fixed
This commit is contained in:
Victor Petukhov
2020-01-27 15:39:59 +03:00
parent 901bb904e0
commit f7626d6474
3 changed files with 22 additions and 2 deletions
@@ -101,3 +101,13 @@ fun test1() {
fun test2() {
errorCompletion.invoke(Exception("fail"))
}
fun test3() {
foo {
produceNothing()
}
}
fun produceNothing(): Nothing = TODO()
fun <R> foo(block: suspend String.() -> R) = null as R
@@ -101,3 +101,13 @@ fun test1() {
fun test2() {
errorCompletion.invoke(Exception("fail"))
}
fun test3() {
foo {
produceNothing()
}
}
fun produceNothing(): Nothing = TODO()
fun <R> foo(block: suspend String.() -> R) = null as R