File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ void SourceLookupCache::populateAuxiliaryDeclCache() {
350350 // macro does not produce the requested name, so the only impact is possibly
351351 // expanding earlier than needed / unnecessarily looking in the top-level
352352 // auxiliary decl cache.
353- for (auto attrConst : decl->getSemanticAttrs ().getAttributes <CustomAttr>()) {
353+ for (auto attrConst : decl->getAttrs ().getAttributes <CustomAttr>()) {
354354 auto *attr = const_cast <CustomAttr *>(attrConst);
355355 UnresolvedMacroReference macroRef (attr);
356356 auto macroName = macroRef.getMacroName ().getBaseIdentifier ();
Original file line number Diff line number Diff line change @@ -386,3 +386,13 @@ func test_global_actor_mismatch() {
386386 let _: @MainActor ( ) -> T = fn // expected-error{{cannot convert value actor-isolated to 'GA' to specified type actor-isolated to 'MainActor'}}
387387 }
388388}
389+
390+ struct GlobalType { }
391+
392+ @_Concurrency . MainActor
393+ extension global_actor_function_types . GlobalType {
394+ @_Concurrency . MainActor static func == (
395+ lhs: global_actor_function_types . GlobalType ,
396+ rhs: global_actor_function_types . GlobalType
397+ ) -> Bool { true }
398+ }
You can’t perform that action at this time.
0 commit comments