File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -8522,6 +8522,9 @@ namespace ts {
8522
8522
if (!produceDiagnostics) {
8523
8523
for (let candidate of candidates) {
8524
8524
if (hasCorrectArity(node, args, candidate)) {
8525
+ if (candidate.typeParameters && typeArguments) {
8526
+ candidate = getSignatureInstantiation(candidate, map(typeArguments, getTypeFromTypeNode));
8527
+ }
8525
8528
return candidate;
8526
8529
}
8527
8530
}
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ goTo.marker('15');
110
110
verify . quickInfoIs ( 'var r4a: Collection<number, any>' ) ;
111
111
112
112
goTo . marker ( '17' ) ;
113
- verify . quickInfoIs ( 'var r5a: Collection<T, V >' ) ; // This is actually due to an error because toFixed does not return a Date
113
+ verify . quickInfoIs ( 'var r5a: Collection<number, Date >' ) ;
114
114
115
115
goTo . marker ( '18' ) ;
116
116
verify . quickInfoIs ( 'var r5b: Collection<number, Date>' ) ;
@@ -122,10 +122,10 @@ goTo.marker('20');
122
122
verify . quickInfoIs ( 'var r6b: Collection<Collection<number, number>, Date>' ) ;
123
123
124
124
goTo . marker ( '21' ) ;
125
- verify . quickInfoIs ( 'var r7a: Collection<T, V >' ) ; // This call is an error because y.foo() does not return a string
125
+ verify . quickInfoIs ( 'var r7a: Collection<number, string >' ) ;
126
126
127
127
goTo . marker ( '22' ) ;
128
- verify . quickInfoIs ( 'var r7b: Collection<T, V >' ) ; // This call is an error because y.foo() does not return a string
128
+ verify . quickInfoIs ( 'var r7b: Collection<number, string >' ) ;
129
129
130
130
goTo . marker ( '23' ) ;
131
131
verify . quickInfoIs ( 'var r8a: Collection<number, string>' ) ;
You can’t perform that action at this time.
0 commit comments