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
634 B
Plaintext
24 lines
634 B
Plaintext
tests/cases/compiler/asiAbstract.ts(1,1): error TS2304: Cannot find name 'abstract'.
|
|
tests/cases/compiler/asiAbstract.ts(3,3): error TS1244: Abstract methods can only appear within an abstract class.
|
|
|
|
|
|
==== tests/cases/compiler/asiAbstract.ts (2 errors) ====
|
|
abstract
|
|
~~~~~~~~
|
|
!!! error TS2304: Cannot find name 'abstract'.
|
|
class NonAbstractClass {
|
|
abstract s();
|
|
~~~~~~~~
|
|
!!! error TS1244: Abstract methods can only appear within an abstract class.
|
|
}
|
|
|
|
class C2 {
|
|
abstract
|
|
nonAbstractFunction() {
|
|
}
|
|
}
|
|
|
|
class C3 {
|
|
abstract
|
|
}
|
|
|