TypeScript/tests/baselines/reference/errorRecoveryWithDotFollowedByNamespaceKeyword.js

27 lines
549 B
TypeScript
Raw Normal View History

2015-06-10 03:09:14 +02:00
//// [errorRecoveryWithDotFollowedByNamespaceKeyword.ts]
namespace A {
function foo() {
if (true) {
B.
namespace B {
export function baz() { }
}
//// [errorRecoveryWithDotFollowedByNamespaceKeyword.js]
var A;
(function (A) {
function foo() {
if (true) {
B.
;
var B;
(function (B) {
function baz() { }
B.baz = baz;
})(B || (B = {}));
}
}
})(A || (A = {}));