mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
879 B
Plaintext
22 lines
879 B
Plaintext
classAbstractProperties.ts(5,13): error TS1243: 'private' modifier cannot be used with 'abstract' modifier.
|
|
classAbstractProperties.ts(12,13): error TS1243: 'private' modifier cannot be used with 'abstract' modifier.
|
|
|
|
|
|
==== classAbstractProperties.ts (2 errors) ====
|
|
abstract class A {
|
|
abstract x : number;
|
|
public abstract y : number;
|
|
protected abstract z : number;
|
|
private abstract w : number;
|
|
~~~~~~~~
|
|
!!! error TS1243: 'private' modifier cannot be used with 'abstract' modifier.
|
|
|
|
abstract m: () => void;
|
|
|
|
abstract foo_x() : number;
|
|
public abstract foo_y() : number;
|
|
protected abstract foo_z() : number;
|
|
private abstract foo_w() : number;
|
|
~~~~~~~~
|
|
!!! error TS1243: 'private' modifier cannot be used with 'abstract' modifier.
|
|
} |