-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
TypeScript Version: 2.8.0-insiders.20180320
Search Terms: literal, invalid left-hand side assignment, es3
Code
var a = [] = [1].map(_ => _);
var b = [1].map(_ => _);Expected behavior:
Compiles to valid ES3 code.
var a = [1].map(function (_) { return _; });
var b = [1].map(function (_) { return _; });Actual behavior:
Doesn't compile to valid ES3 code and emits no warnings.
var a = [1].map(_ => _);
var b = [1].map(function (_) { return _; });Related Issues:
Can't find any.
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue