mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
34 lines
875 B
Plaintext
34 lines
875 B
Plaintext
clinterfaces.ts(13,5): error TS2564: Property 'b' has no initializer and is not definitely assigned in the constructor.
|
|
clinterfaces.ts(17,5): error TS2564: Property 'b' has no initializer and is not definitely assigned in the constructor.
|
|
|
|
|
|
==== clinterfaces.ts (2 errors) ====
|
|
namespace M {
|
|
class C { }
|
|
interface C { }
|
|
interface D { }
|
|
class D { }
|
|
}
|
|
|
|
interface Foo<T> {
|
|
a: string;
|
|
}
|
|
|
|
class Foo<T>{
|
|
b: number;
|
|
~
|
|
!!! error TS2564: Property 'b' has no initializer and is not definitely assigned in the constructor.
|
|
}
|
|
|
|
class Bar<T>{
|
|
b: number;
|
|
~
|
|
!!! error TS2564: Property 'b' has no initializer and is not definitely assigned in the constructor.
|
|
}
|
|
|
|
interface Bar<T> {
|
|
a: string;
|
|
}
|
|
|
|
export = Foo;
|
|
|