mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
798 B
Plaintext
21 lines
798 B
Plaintext
classAndInterfaceWithSameName.ts(1,11): error TS2564: Property 'foo' has no initializer and is not definitely assigned in the constructor.
|
|
classAndInterfaceWithSameName.ts(6,9): error TS2564: Property 'bar' has no initializer and is not definitely assigned in the constructor.
|
|
|
|
|
|
==== classAndInterfaceWithSameName.ts (2 errors) ====
|
|
class C { foo: string; }
|
|
~~~
|
|
!!! error TS2564: Property 'foo' has no initializer and is not definitely assigned in the constructor.
|
|
interface C { foo: string; }
|
|
|
|
namespace M {
|
|
class D {
|
|
bar: string;
|
|
~~~
|
|
!!! error TS2564: Property 'bar' has no initializer and is not definitely assigned in the constructor.
|
|
}
|
|
|
|
interface D {
|
|
bar: string;
|
|
}
|
|
} |