TypeScript/tests/baselines/reference/nameCollisionsInPropertyAssignments.js
Daniel Rosenwasser 819ea95953 Better error recovery for when an arrow function is missing a curly brace.
Also better identification of arrow function expressions.
2014-07-18 16:55:18 -07:00

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++;
} };