"Make containing function suspend" quickfix: don't suggest for anonymous function

#KT-38948 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-05-21 10:56:42 +09:00
committed by Yan Zhulanow
parent 8f3392d635
commit cea879cbd5
3 changed files with 17 additions and 1 deletions
@@ -0,0 +1,10 @@
// "Make containing function suspend" "false"
// ACTION: Convert to run
// ACTION: Convert to with
// DISABLE-ERRORS
class A {
suspend fun foo() {}
}
val p = fun(a: A) {
a.<caret>foo()
}