mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
538 B
TypeScript
16 lines
538 B
TypeScript
//// [tests/cases/compiler/forOfTransformsExpression.ts] ////
|
|
|
|
//// [forOfTransformsExpression.ts]
|
|
// https://github.com/Microsoft/TypeScript/issues/11024
|
|
let items = [{ name: "A" }, { name: "C" }, { name: "B" }];
|
|
for (var item of items.sort((a, b) => a.name.localeCompare(b.name))) {
|
|
|
|
}
|
|
|
|
//// [forOfTransformsExpression.js]
|
|
"use strict";
|
|
// https://github.com/Microsoft/TypeScript/issues/11024
|
|
let items = [{ name: "A" }, { name: "C" }, { name: "B" }];
|
|
for (var item of items.sort((a, b) => a.name.localeCompare(b.name))) {
|
|
}
|