TypeScript/tests/baselines/reference/flowAfterFinally1.symbols

30 lines
895 B
Plaintext

=== tests/cases/compiler/flowAfterFinally1.ts ===
declare function openFile(): void
>openFile : Symbol(openFile, Decl(flowAfterFinally1.ts, 0, 0))
declare function closeFile(): void
>closeFile : Symbol(closeFile, Decl(flowAfterFinally1.ts, 0, 33))
declare function someOperation(): {}
>someOperation : Symbol(someOperation, Decl(flowAfterFinally1.ts, 1, 34))
var result: {}
>result : Symbol(result, Decl(flowAfterFinally1.ts, 4, 3))
openFile()
>openFile : Symbol(openFile, Decl(flowAfterFinally1.ts, 0, 0))
try {
result = someOperation()
>result : Symbol(result, Decl(flowAfterFinally1.ts, 4, 3))
>someOperation : Symbol(someOperation, Decl(flowAfterFinally1.ts, 1, 34))
} finally {
closeFile()
>closeFile : Symbol(closeFile, Decl(flowAfterFinally1.ts, 0, 33))
}
result // should not error here
>result : Symbol(result, Decl(flowAfterFinally1.ts, 4, 3))