Skip to content

Commit e73f505

Browse files
authored
Merge pull request #24266 from rjmccall/retro-self-conf-mangling
2 parents d24bc38 + 091e1cf commit e73f505

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/SILGen/Inputs/RetroactiveB.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
public struct X { }
22
public struct Y { }
3+
public struct ExternalGeneric<Argument> {}

test/SILGen/mangling_retroactive.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,8 @@ extension ConditionallyP2: P where T: Q, T: NonRetroactive {}
8787

8888
func useConditionallyP2(_: RequiresP<ConditionallyP2<Y>>) {}
8989
// CHECK: sil hidden [ossa] @$s20mangling_retroactive18useConditionallyP2yyAA9RequiresPVyAA0dE0Vy12RetroactiveB1YVGAJ0G1A1PHPAiK1QAAyHC_AiA03NonG0HpyHCHCg_GF
90+
91+
struct RequiresError<T> where T: Error { }
92+
extension ExternalGeneric: Error where Argument: Error { }
93+
func useRequiresError(_: RequiresError<ExternalGeneric<Error>>) {}
94+
// CHECK: sil hidden [ossa] @$s20mangling_retroactive16useRequiresErroryyAA0dE0Vy12RetroactiveB15ExternalGenericVys0E0_pGAIsAhAsAH_psAHHPyHC_HCg_GF

0 commit comments

Comments
 (0)