mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
1.2 KiB
Plaintext
27 lines
1.2 KiB
Plaintext
classMemberWithMissingIdentifier2.ts(2,11): error TS1146: Declaration expected.
|
|
classMemberWithMissingIdentifier2.ts(2,12): error TS1005: ';' expected.
|
|
classMemberWithMissingIdentifier2.ts(2,18): error TS1005: ',' expected.
|
|
classMemberWithMissingIdentifier2.ts(2,19): error TS2693: 'string' only refers to a type, but is being used as a value here.
|
|
classMemberWithMissingIdentifier2.ts(2,26): error TS1005: ';' expected.
|
|
classMemberWithMissingIdentifier2.ts(2,27): error TS2304: Cannot find name 'VariableDeclaration'.
|
|
classMemberWithMissingIdentifier2.ts(3,1): error TS1128: Declaration or statement expected.
|
|
|
|
|
|
==== classMemberWithMissingIdentifier2.ts (7 errors) ====
|
|
class C {
|
|
public {[name:string]:VariableDeclaration};
|
|
|
|
!!! error TS1146: Declaration expected.
|
|
~
|
|
!!! error TS1005: ';' expected.
|
|
~
|
|
!!! error TS1005: ',' expected.
|
|
~~~~~~
|
|
!!! error TS2693: 'string' only refers to a type, but is being used as a value here.
|
|
~
|
|
!!! error TS1005: ';' expected.
|
|
~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2304: Cannot find name 'VariableDeclaration'.
|
|
}
|
|
~
|
|
!!! error TS1128: Declaration or statement expected. |