We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73de4de commit 430307aCopy full SHA for 430307a
lib/Sema/TypeCheckStorage.cpp
@@ -950,6 +950,9 @@ bool AccessorDecl::doesAccessorHaveBody() const {
950
if (!requiresFeatureCoroutineAccessors(accessor->getAccessorKind())) {
951
return false;
952
}
953
+ if (storage->getOverrideLoc()) {
954
+ return false;
955
+ }
956
return accessor->getStorage()
957
->requiresCorrespondingUnderscoredCoroutineAccessor(
958
accessor->getAccessorKind(), accessor);
test/TBD/coroutine_accessors.swift
@@ -17,3 +17,7 @@ public protocol P {
17
18
var s: S { read set }
19
20
+
21
+public protocol Q : P {
22
+ override var s: S { read set }
23
+}
0 commit comments