This makes parsing of these constructs the same whether they are in an object literal or a class. This is important for incrementla parsing for knowing if we can reuse these nodes if we run into them.
9 lines
No EOL
363 B
Text
9 lines
No EOL
363 B
Text
tests/cases/compiler/modifiersOnInterfaceIndexSignature1.ts(2,3): error TS1145: Modifiers not permitted on index signature members.
|
|
|
|
|
|
==== tests/cases/compiler/modifiersOnInterfaceIndexSignature1.ts (1 errors) ====
|
|
interface I {
|
|
public [a: string]: number;
|
|
~~~~~~
|
|
!!! error TS1145: Modifiers not permitted on index signature members.
|
|
} |