File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -2146,7 +2146,11 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
2146
2146
(void ) VD->getPropertyWrapperAuxiliaryVariables ();
2147
2147
(void ) VD->getPropertyWrapperInitializerInfo ();
2148
2148
(void ) VD->getImplInfo ();
2149
- (void )getActorIsolation (VD);
2149
+ // Declarations inside types are handled in checkConformancesInContext() to
2150
+ // avoid cycles involving associated type inference.
2151
+ if (!VD->getDeclContext ()->isTypeContext ()) {
2152
+ (void )getActorIsolation (VD);
2153
+ }
2150
2154
2151
2155
// Visit auxiliary decls first
2152
2156
VD->visitAuxiliaryDecls ([&](VarDecl *var) {
Original file line number Diff line number Diff line change 1
- // RUN: %target-typecheck-verify-swift -parse-as-library -enable-experimental-feature StrictConcurrency -enable-experimental-feature GlobalConcurrency
2
- // RUN: %target-typecheck-verify-swift -parse-as-library -enable-experimental-feature StrictConcurrency=complete -enable-experimental-feature GlobalConcurrency
1
+ // RUN: %target-typecheck-verify-swift -disable-availability-checking - parse-as-library -enable-experimental-feature StrictConcurrency -enable-experimental-feature GlobalConcurrency
2
+ // RUN: %target-typecheck-verify-swift -disable-availability-checking - parse-as-library -enable-experimental-feature StrictConcurrency=complete -enable-experimental-feature GlobalConcurrency
3
3
// REQUIRES: concurrency
4
4
5
5
class C1 { } // expected-note{{class 'C1' does not conform to the 'Sendable' protocol}}
You can’t perform that action at this time.
0 commit comments