TypeScript/tests/cases/compiler/functionsWithModifiersInBlocks1.ts
Cyrus Najmabadi d5c6636854 Parse function and variable declarations uniformly, whether they're at teh top level, or inside a method.
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.
2014-12-12 03:52:01 -08:00

5 lines
97 B
TypeScript

{
declare function f() { }
export function f() { }
declare export function f() { }
}