-
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.9.1 and 3.0.0-dev.20180601
Search Terms:
Code
function test(p: any) {
'use strict';
p = { prop: p } = p;
}Expected behavior:
function test(p) {
'use strict';
var _a;
p = (_a = p, p = _a.prop, _a);
}Actual behavior:
function test(p) {
var _a;
'use strict';
p = (_a = p, p = _a.prop, _a);
}Related Issues:
#24386 should have fixed this 😕 but the baselines only changed code related to System.register. //cc @weswigham
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