d5c6636854
This is necessary for incremental parsing correctness, as the incremental parser will attempt to reuse these types of nodes in both contexts, and we much ensure it creates the same trees you would get if you were parsing normally.
11 lines
389 B
Plaintext
11 lines
389 B
Plaintext
tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnStatementInBlock4.ts(2,4): error TS1184: Modifiers cannot appear here.
|
|
|
|
|
|
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnStatementInBlock4.ts (1 errors) ====
|
|
{
|
|
export function bar() {
|
|
~~~~~~
|
|
!!! error TS1184: Modifiers cannot appear here.
|
|
}
|
|
}
|
|
|