mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
29 lines
467 B
TypeScript
29 lines
467 B
TypeScript
//// [tests/cases/compiler/cloduleStaticMembers.ts] ////
|
|
|
|
//// [cloduleStaticMembers.ts]
|
|
class Clod {
|
|
private static x = 10;
|
|
public static y = 10;
|
|
}
|
|
namespace Clod {
|
|
var p = Clod.x;
|
|
var q = x;
|
|
|
|
var s = Clod.y;
|
|
var t = y;
|
|
}
|
|
|
|
|
|
//// [cloduleStaticMembers.js]
|
|
"use strict";
|
|
class Clod {
|
|
}
|
|
Clod.x = 10;
|
|
Clod.y = 10;
|
|
(function (Clod) {
|
|
var p = Clod.x;
|
|
var q = x;
|
|
var s = Clod.y;
|
|
var t = y;
|
|
})(Clod || (Clod = {}));
|