File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -528,7 +528,7 @@ namespace {
528
528
529
529
if (VD->hasInterfaceType ()) {
530
530
OS << " interface type='" ;
531
- VD->getInterfaceType ()->getCanonicalType (). print (OS);
531
+ VD->getInterfaceType ()->print (OS);
532
532
OS << ' \' ' ;
533
533
}
534
534
Original file line number Diff line number Diff line change 2
2
3
3
func doSomething< T> ( _ t: T ) { }
4
4
5
- // CHECK: func_decl "outerGeneric(t:x:)"<T> interface type='<τ_0_0 > (t: τ_0_0 , x: AnyObject) -> ()'
5
+ // CHECK: func_decl "outerGeneric(t:x:)"<T> interface type='<T > (t: T , x: AnyObject) -> ()'
6
6
7
7
func outerGeneric< T> ( t: T , x: AnyObject ) {
8
8
// Simple case -- closure captures outer generic parameter
@@ -20,13 +20,13 @@ func outerGeneric<T>(t: T, x: AnyObject) {
20
20
21
21
// Nested generic functions always capture outer generic parameters, even if
22
22
// they're not mentioned in the function body
23
- // CHECK: func_decl "innerGeneric(u:)"<U> interface type='<τ_0_0, τ_1_0 > (u: τ_1_0 ) -> ()' {{.*}} captures=(<generic> )
23
+ // CHECK: func_decl "innerGeneric(u:)"<U> interface type='<T, U > (u: U ) -> ()' {{.*}} captures=(<generic> )
24
24
func innerGeneric< U> ( u: U ) { }
25
25
26
26
// Make sure we look through typealiases
27
27
typealias TT = ( a: T , b: T )
28
28
29
- // CHECK: func_decl "localFunction(tt:)" interface type='<τ_0_0 > (tt: (a: τ_0_0 , b: τ_0_0 )) -> ()' {{.*}} captures=(<generic> )
29
+ // CHECK: func_decl "localFunction(tt:)" interface type='<T > (tt: (a: T , b: T )) -> ()' {{.*}} captures=(<generic> )
30
30
func localFunction( tt: TT ) { }
31
31
32
32
// CHECK: closure_expr type='(TT) -> ()' {{.*}} captures=(<generic> )
You can’t perform that action at this time.
0 commit comments