22 lines
No EOL
1,016 B
Text
22 lines
No EOL
1,016 B
Text
lib.d.ts(521,11): error TS2507: An interface cannot merge with a non-ambient class.
|
|
tests/cases/compiler/templateStringsArrayTypeRedefinedInES6Mode.ts(2,7): error TS2506: A non-ambient class cannot be merged with an interface.
|
|
tests/cases/compiler/templateStringsArrayTypeRedefinedInES6Mode.ts(8,3): error TS2345: Argument of type '{}' is not assignable to parameter of type 'TemplateStringsArray'.
|
|
Property 'raw' is missing in type '{}'.
|
|
|
|
|
|
==== tests/cases/compiler/templateStringsArrayTypeRedefinedInES6Mode.ts (2 errors) ====
|
|
|
|
class TemplateStringsArray {
|
|
~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2506: A non-ambient class cannot be merged with an interface.
|
|
}
|
|
|
|
function f(x: TemplateStringsArray, y: number, z: number) {
|
|
}
|
|
|
|
f({}, 10, 10);
|
|
~~
|
|
!!! error TS2345: Argument of type '{}' is not assignable to parameter of type 'TemplateStringsArray'.
|
|
!!! error TS2345: Property 'raw' is missing in type '{}'.
|
|
|
|
f `abcdef${ 1234 }${ 5678 }ghijkl`; |