mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
37 lines
468 B
TypeScript
37 lines
468 B
TypeScript
// @out: output.js
|
|
// @allowJs: true
|
|
|
|
// @filename: a.js
|
|
var variable = {};
|
|
variable.a = 0;
|
|
|
|
class C {
|
|
initializedMember = {};
|
|
constructor() {
|
|
this.member = {};
|
|
this.member.a = 0;
|
|
}
|
|
}
|
|
|
|
var obj = {
|
|
property: {}
|
|
};
|
|
|
|
obj.property.a = 0;
|
|
|
|
var arr = [{}];
|
|
|
|
function getObj() {
|
|
return {};
|
|
}
|
|
|
|
|
|
// @filename: b.ts
|
|
variable.a = 1;
|
|
(new C()).member.a = 1;
|
|
(new C()).initializedMember.a = 1;
|
|
obj.property.a = 1;
|
|
arr[0].a = 1;
|
|
getObj().a = 1;
|
|
|