26 lines
549 B
TypeScript
26 lines
549 B
TypeScript
//// [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 = {}));
|