30 lines
720 B
Plaintext
30 lines
720 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, 2, 19))
|
|
}
|
|
|
|
let a: A | null = null;
|
|
>a : Symbol(a, Decl(flowInFinally1.ts, 6, 3))
|
|
>A : Symbol(A, Decl(flowInFinally1.ts, 0, 0))
|
|
|
|
try {
|
|
a = new A();
|
|
>a : Symbol(a, Decl(flowInFinally1.ts, 6, 3))
|
|
>A : Symbol(A, Decl(flowInFinally1.ts, 0, 0))
|
|
|
|
} finally {
|
|
if (a) {
|
|
>a : Symbol(a, Decl(flowInFinally1.ts, 6, 3))
|
|
|
|
a.method();
|
|
>a.method : Symbol(A.method, Decl(flowInFinally1.ts, 2, 19))
|
|
>a : Symbol(a, Decl(flowInFinally1.ts, 6, 3))
|
|
>method : Symbol(A.method, Decl(flowInFinally1.ts, 2, 19))
|
|
}
|
|
}
|