Skip to content

Commit d946089

Browse files
committed
Added one more test on exported variables
1 parent f2d6483 commit d946089

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
class InternalClass {
2+
public publicProperty: number = 1;
3+
}
4+
5+
class InternalClass2 {
6+
public publicProperty: number = 1;
7+
}
8+
9+
export const exportedVariable = (() => {
10+
return new InternalClass();
11+
})();
12+
13+
export const exportedVariable2 = (() => {
14+
return new InternalClass2().publicProperty;
15+
})();
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
3+
var InternalClass = /** @class */ (function () {
4+
function InternalClass() {
5+
this.publicProperty = 1;
6+
}
7+
return InternalClass;
8+
}());
9+
var InternalClass2 = /** @class */ (function () {
10+
function InternalClass2() {
11+
this._internal_publicProperty = 1;
12+
}
13+
return InternalClass2;
14+
}());
15+
exports.exportedVariable = (function () {
16+
return new InternalClass();
17+
})();
18+
exports.exportedVariable2 = (function () {
19+
return new InternalClass2()._internal_publicProperty;
20+
})();

0 commit comments

Comments
 (0)