This includes public, private, protected, abstract async and declare already work this way, but it looks like they didn't block the completion list, so I added them to the list too.
24 lines
959 B
Plaintext
24 lines
959 B
Plaintext
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractSingleLineDecl.ts(3,1): error TS2304: Cannot find name 'abstract'.
|
|
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractSingleLineDecl.ts(6,1): error TS2304: Cannot find name 'abstract'.
|
|
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractSingleLineDecl.ts(10,1): error TS2511: Cannot create an instance of the abstract class 'A'.
|
|
|
|
|
|
==== tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractSingleLineDecl.ts (3 errors) ====
|
|
abstract class A {}
|
|
|
|
abstract
|
|
~~~~~~~~
|
|
!!! error TS2304: Cannot find name 'abstract'.
|
|
class B {}
|
|
|
|
abstract
|
|
~~~~~~~~
|
|
!!! error TS2304: Cannot find name 'abstract'.
|
|
|
|
class C {}
|
|
|
|
new A;
|
|
~~~~~
|
|
!!! error TS2511: Cannot create an instance of the abstract class 'A'.
|
|
new B;
|
|
new C; |