mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
32 lines
931 B
Plaintext
32 lines
931 B
Plaintext
//// [tests/cases/compiler/flowAfterFinally1.ts] ////
|
|
|
|
=== 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))
|
|
|