Files
tsgo/testdata/baselines/reference/submodule/compiler/declarationEmitExpressionInExtends2.errors.txt

20 lines
770 B
Plaintext

declarationEmitExpressionInExtends2.ts(2,5): error TS2564: Property 'x' has no initializer and is not definitely assigned in the constructor.
declarationEmitExpressionInExtends2.ts(3,5): error TS2564: Property 'y' has no initializer and is not definitely assigned in the constructor.
==== declarationEmitExpressionInExtends2.ts (2 errors) ====
class C<T, U> {
x: T;
~
!!! error TS2564: Property 'x' has no initializer and is not definitely assigned in the constructor.
y: U;
~
!!! error TS2564: Property 'y' has no initializer and is not definitely assigned in the constructor.
}
function getClass<T>(c: T) {
return C;
}
class MyClass extends getClass(2) <string, number> {
}