9 lines
No EOL
297 B
Text
9 lines
No EOL
297 B
Text
==== tests/cases/compiler/illegalModifiersOnClassElements.ts (2 errors) ====
|
|
class C {
|
|
declare foo = 1;
|
|
~~~~~~~
|
|
!!! 'declare' modifier cannot appear on a class element.
|
|
export bar = 1;
|
|
~~~~~~
|
|
!!! 'export' modifier cannot appear on a class element.
|
|
} |