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() {
350
350
// macro does not produce the requested name, so the only impact is possibly
351
351
// expanding earlier than needed / unnecessarily looking in the top-level
352
352
// auxiliary decl cache.
353
- for (auto attrConst : decl->getSemanticAttrs ().getAttributes <CustomAttr>()) {
353
+ for (auto attrConst : decl->getAttrs ().getAttributes <CustomAttr>()) {
354
354
auto *attr = const_cast <CustomAttr *>(attrConst);
355
355
UnresolvedMacroReference macroRef (attr);
356
356
auto macroName = macroRef.getMacroName ().getBaseIdentifier ();
Original file line number Diff line number Diff line change @@ -386,3 +386,13 @@ func test_global_actor_mismatch() {
386
386
let _: @MainActor ( ) -> T = fn // expected-error{{cannot convert value actor-isolated to 'GA' to specified type actor-isolated to 'MainActor'}}
387
387
}
388
388
}
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