[FIR] Require overrides to have matching isSuspend flag value
^KT-57100 Fixed
This commit is contained in:
committed by
Space Team
parent
4e58715760
commit
2e7dcd6096
+1
-1
@@ -2,6 +2,6 @@
|
||||
interface AsyncVal { suspend fun getVal(): Int = 1}
|
||||
interface SyncVal { fun getVal(): Int = 1 }
|
||||
|
||||
<!CONFLICTING_INHERITED_MEMBERS, MANY_INTERFACES_MEMBER_NOT_IMPLEMENTED!>class MixSuspend<!> : AsyncVal, SyncVal {
|
||||
<!CONFLICTING_INHERITED_MEMBERS!>class MixSuspend<!> : AsyncVal, SyncVal {
|
||||
|
||||
}
|
||||
|
||||
+2
-2
@@ -6,11 +6,11 @@ interface A {
|
||||
}
|
||||
|
||||
interface B : A {
|
||||
override fun foo() {
|
||||
<!CONFLICTING_OVERLOADS!><!NOTHING_TO_OVERRIDE!>override<!> fun foo()<!> {
|
||||
|
||||
}
|
||||
|
||||
override suspend fun bar() {
|
||||
<!CONFLICTING_OVERLOADS!><!NOTHING_TO_OVERRIDE!>override<!> suspend fun bar()<!> {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user