TypeScript/tests/cases/compiler/propertyWrappedInTry.ts
2014-07-12 17:30:19 -07:00

19 lines
203 B
TypeScript

class Foo {
try {
public bar = someInitThatMightFail();
} catch(e) {}
public baz() {
return this.bar; // doesn't get rewritten to Foo.bar.
}
}