File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -600,6 +600,11 @@ namespace A {
600
600
M<T1, T2>(t1: T1, t2: T2) {
601
601
[#|t1.toString()|];
602
602
}
603
+ }` ) ;
604
+ // Coupled constraints
605
+ testExtractMethod ( "extractMethod19" ,
606
+ `function F<T, U extends T[], V extends U[]>(v: V) {
607
+ [#|v.toString()|];
603
608
}` ) ;
604
609
} ) ;
605
610
Original file line number Diff line number Diff line change
1
+ // ==ORIGINAL==
2
+ function F < T , U extends T [ ] , V extends U [ ] > ( v : V ) {
3
+ v . toString ( ) ;
4
+ }
5
+ // ==SCOPE::function 'F'==
6
+ function F < T , U extends T [ ] , V extends U [ ] > ( v : V ) {
7
+ newFunction ( ) ;
8
+
9
+ function newFunction ( ) {
10
+ v . toString ( ) ;
11
+ }
12
+ }
13
+ // ==SCOPE::global scope==
14
+ function F < T , U extends T [ ] , V extends U [ ] > ( v : V ) {
15
+ newFunction < T , U , V > ( v ) ;
16
+ }
17
+ function newFunction < T , U extends T [ ] , V extends U [ ] > ( v : V ) {
18
+ v . toString ( ) ;
19
+ }
You can’t perform that action at this time.
0 commit comments