13 lines
No EOL
588 B
Text
13 lines
No EOL
588 B
Text
tests/cases/compiler/illegalModifiersOnClassElements.ts(2,5): error TS1031: 'declare' modifier cannot appear on a class element.
|
|
tests/cases/compiler/illegalModifiersOnClassElements.ts(3,5): error TS1031: 'export' modifier cannot appear on a class element.
|
|
|
|
|
|
==== tests/cases/compiler/illegalModifiersOnClassElements.ts (2 errors) ====
|
|
class C {
|
|
declare foo = 1;
|
|
~~~~~~~
|
|
!!! error TS1031: 'declare' modifier cannot appear on a class element.
|
|
export bar = 1;
|
|
~~~~~~
|
|
!!! error TS1031: 'export' modifier cannot appear on a class element.
|
|
} |