29 lines
No EOL
2 KiB
Text
29 lines
No EOL
2 KiB
Text
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractProperties.ts(2,5): error TS1236: 'abstract' modifier can only appear on a class or member function declaration.
|
|
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractProperties.ts(3,12): error TS1236: 'abstract' modifier can only appear on a class or member function declaration.
|
|
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractProperties.ts(4,15): error TS1236: 'abstract' modifier can only appear on a class or member function declaration.
|
|
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractProperties.ts(5,13): error TS1236: 'abstract' modifier can only appear on a class or member function declaration.
|
|
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractProperties.ts(10,13): error TS1237: 'private' modifier cannot be used with 'abstract' modifier.
|
|
|
|
|
|
==== tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractProperties.ts (5 errors) ====
|
|
abstract class A {
|
|
abstract x : number;
|
|
~~~~~~~~
|
|
!!! error TS1236: 'abstract' modifier can only appear on a class or member function declaration.
|
|
public abstract y : number;
|
|
~~~~~~~~
|
|
!!! error TS1236: 'abstract' modifier can only appear on a class or member function declaration.
|
|
protected abstract z : number;
|
|
~~~~~~~~
|
|
!!! error TS1236: 'abstract' modifier can only appear on a class or member function declaration.
|
|
private abstract w : number;
|
|
~~~~~~~~
|
|
!!! error TS1236: 'abstract' modifier can only appear on a class or member function declaration.
|
|
|
|
abstract foo_x() : number;
|
|
public abstract foo_y() : number;
|
|
protected abstract foo_z() : number;
|
|
private abstract foo_w() : number;
|
|
~~~~~~~~
|
|
!!! error TS1237: 'private' modifier cannot be used with 'abstract' modifier.
|
|
} |