Files
tsgo/testdata/baselines/reference/submodule/conformance/asiPreventsParsingAsInterface01.errors.txt

20 lines
1.1 KiB
Plaintext

asiPreventsParsingAsInterface01.ts(1,5): error TS1212: Identifier expected. 'interface' is a reserved word in strict mode.
asiPreventsParsingAsInterface01.ts(3,1): error TS1212: Identifier expected. 'interface' is a reserved word in strict mode.
asiPreventsParsingAsInterface01.ts(3,1): error TS2454: Variable 'interface' is used before being assigned.
asiPreventsParsingAsInterface01.ts(4,1): error TS2454: Variable 'I' is used before being assigned.
==== asiPreventsParsingAsInterface01.ts (4 errors) ====
var interface: number, I: string;
~~~~~~~~~
!!! error TS1212: Identifier expected. 'interface' is a reserved word in strict mode.
interface // This should be the identifier 'interface'
~~~~~~~~~
!!! error TS1212: Identifier expected. 'interface' is a reserved word in strict mode.
~~~~~~~~~
!!! error TS2454: Variable 'interface' is used before being assigned.
I // This should be the identifier 'I'
~
!!! error TS2454: Variable 'I' is used before being assigned.
{} // This should be a block body