File: callWithWrongNumberOfTypeArguments.errors.txt

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (14 lines) | stat: -rw-r--r-- 589 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
tests/cases/compiler/callWithWrongNumberOfTypeArguments.ts(3,3): error TS2558: Expected 2 type arguments, but got 1.
tests/cases/compiler/callWithWrongNumberOfTypeArguments.ts(5,3): error TS2558: Expected 2 type arguments, but got 3.


==== tests/cases/compiler/callWithWrongNumberOfTypeArguments.ts (2 errors) ====
    function f<T, U>() { }
    
    f<number>();
      ~~~~~~
!!! error TS2558: Expected 2 type arguments, but got 1.
    f<number, string>();
    f<number, string, number>();
      ~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2558: Expected 2 type arguments, but got 3.