mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
315 B
TypeScript
16 lines
315 B
TypeScript
//// [tests/cases/compiler/compoundVarDecl1.ts] ////
|
|
|
|
//// [compoundVarDecl1.ts]
|
|
namespace Foo { var a = 1, b = 1; a = b + 2; }
|
|
|
|
var foo = 4, bar = 5;
|
|
|
|
//// [compoundVarDecl1.js]
|
|
"use strict";
|
|
var Foo;
|
|
(function (Foo) {
|
|
var a = 1, b = 1;
|
|
a = b + 2;
|
|
})(Foo || (Foo = {}));
|
|
var foo = 4, bar = 5;
|