Do not report "redundant suspend" on override / open #KT-21938 Fixed
This commit is contained in:
@@ -40,4 +40,25 @@ class C(val x: Int, val y: Int) {
|
||||
// Not redundant
|
||||
suspend fun foo(c1: C, c2: C): Int {
|
||||
return c1() + c2()
|
||||
}
|
||||
|
||||
interface C {
|
||||
// Not redundant
|
||||
suspend fun foo()
|
||||
}
|
||||
|
||||
class D : C {
|
||||
// Not redundant
|
||||
override suspend fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
open class E {
|
||||
// Not redundant
|
||||
open suspend fun bar() {
|
||||
|
||||
}
|
||||
// Not redundant
|
||||
abstract suspend fun baz()
|
||||
}
|
||||
Reference in New Issue
Block a user