mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
30 lines
650 B
TypeScript
30 lines
650 B
TypeScript
//// [tests/cases/compiler/errorRecoveryWithDotFollowedByNamespaceKeyword.ts] ////
|
|
|
|
//// [errorRecoveryWithDotFollowedByNamespaceKeyword.ts]
|
|
namespace A {
|
|
function foo() {
|
|
if (true) {
|
|
B.
|
|
|
|
|
|
namespace B {
|
|
export function baz() { }
|
|
}
|
|
|
|
//// [errorRecoveryWithDotFollowedByNamespaceKeyword.js]
|
|
"use strict";
|
|
var A;
|
|
(function (A) {
|
|
function foo() {
|
|
if (true) {
|
|
B.
|
|
;
|
|
let B;
|
|
(function (B) {
|
|
function baz() { }
|
|
B.baz = baz;
|
|
})(B || (B = {}));
|
|
}
|
|
}
|
|
})(A || (A = {}));
|