2015-06-18 21:27:48 +02:00
tests/cases/compiler/templateStringsArrayTypeDefinedInES5Mode.ts(2,7): error TS2511: 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 '{}'.
2014-11-14 00:17:53 +01:00
2015-02-06 17:02:30 +01:00
==== tests/cases/compiler/templateStringsArrayTypeDefinedInES5Mode.ts (2 errors) ====
2014-11-14 00:17:53 +01:00
class TemplateStringsArray {
~~~~~~~~~~~~~~~~~~~~
2015-06-18 21:27:48 +02:00
!!! error TS2511: Only an ambient class can be merged with an interface.
2014-11-14 00:17:53 +01:00
}
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 '{}'.
2014-11-14 00:17:53 +01:00
2015-02-06 17:02:30 +01:00
f `abcdef${ 1234 }${ 5678 }ghijkl`;