26 lines
413 B
TypeScript
26 lines
413 B
TypeScript
//// [parserErrorRecoveryIfStatement6.ts]
|
|
class Foo {
|
|
f1() {
|
|
if (a.b) {
|
|
}
|
|
public f2() {
|
|
}
|
|
f3() {
|
|
}
|
|
}
|
|
|
|
|
|
//// [parserErrorRecoveryIfStatement6.js]
|
|
var Foo = (function () {
|
|
function Foo() {
|
|
}
|
|
Foo.prototype.f1 = function () {
|
|
if (a.b) {
|
|
}
|
|
};
|
|
Foo.prototype.f2 = function () {
|
|
};
|
|
Foo.prototype.f3 = function () {
|
|
};
|
|
return Foo;
|
|
})();
|