TypeScript/tests/baselines/reference/genericObjectCreationWithoutTypeArgs.errors.txt

15 lines
574 B
Plaintext
Raw Normal View History

tests/cases/compiler/genericObjectCreationWithoutTypeArgs.ts(6,26): error TS1005: '(' expected.
==== tests/cases/compiler/genericObjectCreationWithoutTypeArgs.ts (1 errors) ====
2014-07-13 01:04:16 +02:00
class SS<T>{
}
var x1 = new SS<number>(); // OK
var x2 = new SS < number>; // Correctly give error
~
!!! error TS1005: '(' expected.
2014-07-13 01:04:16 +02:00
var x3 = new SS(); // OK
var x4 = new SS; // Should be allowed, but currently give error ('supplied parameters do not match any signature of the call target')