mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
359 B
TypeScript
18 lines
359 B
TypeScript
//// [tests/cases/compiler/duplicateVarAndImport2.ts] ////
|
|
|
|
//// [duplicateVarAndImport2.ts]
|
|
// error since module is instantiated
|
|
var a;
|
|
namespace M { export var x = 1; }
|
|
import a = M;
|
|
|
|
//// [duplicateVarAndImport2.js]
|
|
"use strict";
|
|
// error since module is instantiated
|
|
var a;
|
|
var M;
|
|
(function (M) {
|
|
M.x = 1;
|
|
})(M || (M = {}));
|
|
var a = M;
|