16 lines
No EOL
181 B
TypeScript
16 lines
No EOL
181 B
TypeScript
// @strictNullChecks: true
|
|
|
|
class A {
|
|
constructor() { }
|
|
method() { }
|
|
}
|
|
|
|
let a: A | null = null;
|
|
|
|
try {
|
|
a = new A();
|
|
} finally {
|
|
if (a) {
|
|
a.method();
|
|
}
|
|
} |