mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
978 B
Plaintext
18 lines
978 B
Plaintext
classExtendsClauseClassNotReferringConstructor.ts(1,11): error TS2564: Property 'a' has no initializer and is not definitely assigned in the constructor.
|
|
classExtendsClauseClassNotReferringConstructor.ts(4,21): error TS2507: Type 'number' is not a constructor function type.
|
|
classExtendsClauseClassNotReferringConstructor.ts(4,25): error TS2564: Property 'b' has no initializer and is not definitely assigned in the constructor.
|
|
|
|
|
|
==== classExtendsClauseClassNotReferringConstructor.ts (3 errors) ====
|
|
class A { a: number; }
|
|
~
|
|
!!! error TS2564: Property 'a' has no initializer and is not definitely assigned in the constructor.
|
|
namespace Foo {
|
|
var A = 1;
|
|
class B extends A { b: string; }
|
|
~
|
|
!!! error TS2507: Type 'number' is not a constructor function type.
|
|
~
|
|
!!! error TS2564: Property 'b' has no initializer and is not definitely assigned in the constructor.
|
|
}
|
|
|