2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/genericCallWithoutArgs.ts (4 errors) ====
|
|
|
|
function f<X, Y>(x: X, y: Y) {
|
|
|
|
}
|
|
|
|
|
|
|
|
f<number,string>.
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1109: Expression expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1003: Identifier expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'number'.
|
2014-07-13 01:04:16 +02:00
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'string'.
|