29 lines
718 B
Plaintext
29 lines
718 B
Plaintext
=== tests/cases/compiler/flowInFinally1.ts ===
|
|
class A {
|
|
>A : Symbol(A, Decl(flowInFinally1.ts, 0, 0))
|
|
|
|
constructor() { }
|
|
method() { }
|
|
>method : Symbol(A.method, Decl(flowInFinally1.ts, 1, 19))
|
|
}
|
|
|
|
let a: A | null = null;
|
|
>a : Symbol(a, Decl(flowInFinally1.ts, 5, 3))
|
|
>A : Symbol(A, Decl(flowInFinally1.ts, 0, 0))
|
|
|
|
try {
|
|
a = new A();
|
|
>a : Symbol(a, Decl(flowInFinally1.ts, 5, 3))
|
|
>A : Symbol(A, Decl(flowInFinally1.ts, 0, 0))
|
|
|
|
} finally {
|
|
if (a) {
|
|
>a : Symbol(a, Decl(flowInFinally1.ts, 5, 3))
|
|
|
|
a.method();
|
|
>a.method : Symbol(A.method, Decl(flowInFinally1.ts, 1, 19))
|
|
>a : Symbol(a, Decl(flowInFinally1.ts, 5, 3))
|
|
>method : Symbol(A.method, Decl(flowInFinally1.ts, 1, 19))
|
|
}
|
|
}
|