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

21 lines
923 B
Plaintext
Raw Normal View History

2015-07-02 19:26:36 +02:00
tests/cases/compiler/templateStringsArrayTypeDefinedInES5Mode.ts(2,7): error TS2518: Only an ambient class can be merged with an interface.
2015-06-03 00:26:43 +02:00
tests/cases/compiler/templateStringsArrayTypeDefinedInES5Mode.ts(8,3): error TS2345: Argument of type '{}' is not assignable to parameter of type 'TemplateStringsArray'.
Property 'raw' is missing in type '{}'.
2015-02-06 17:02:30 +01:00
==== tests/cases/compiler/templateStringsArrayTypeDefinedInES5Mode.ts (2 errors) ====
class TemplateStringsArray {
~~~~~~~~~~~~~~~~~~~~
2015-07-02 19:26:36 +02:00
!!! error TS2518: Only an ambient class can be merged with an interface.
}
function f(x: TemplateStringsArray, y: number, z: number) {
}
f({}, 10, 10);
~~
2015-06-03 00:26:43 +02:00
!!! error TS2345: Argument of type '{}' is not assignable to parameter of type 'TemplateStringsArray'.
!!! error TS2345: Property 'raw' is missing in type '{}'.
2015-02-06 17:02:30 +01:00
f `abcdef${ 1234 }${ 5678 }ghijkl`;