TypeScript/tests/baselines/reference/nameCollisionsInPropertyAssignments.errors.txt
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

5 lines
No EOL
226 B
Text

==== tests/cases/compiler/nameCollisionsInPropertyAssignments.ts (1 errors) ====
var x = 1
var y = { x() { x++; } };
~
!!! An arithmetic operand must be of type 'any', 'number' or an enum type.