7 lines
184 B
TypeScript
7 lines
184 B
TypeScript
//// [nameCollisionsInPropertyAssignments.ts]
|
|
var x = 1
|
|
var y = { x() { x++; } };
|
|
|
|
//// [nameCollisionsInPropertyAssignments.js]
|
|
var x = 1;
|
|
var y = { x: function () { x++; } };
|