9 lines
191 B
JavaScript
9 lines
191 B
JavaScript
//// [nameCollisionsInPropertyAssignments.ts]
|
|
var x = 1
|
|
var y = { x() { x++; } };
|
|
|
|
//// [nameCollisionsInPropertyAssignments.js]
|
|
var x = 1;
|
|
var y = { x: function x() {
|
|
x++;
|
|
} };
|