Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions tslang/test/tester/tests/00generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ function makeRangeIterator1(start: int, end: int, step: int) {
}

function main1() {
// DO NOT PUT CONST, otherwise you can't edit
let it = makeRangeIterator1(1, 10, 2);
const it = makeRangeIterator1(1, 10, 2);

let count = 0;
let result = it.next();
Expand Down Expand Up @@ -60,8 +59,7 @@ function makeRangeIterator2(start: int, end: int, step: int) {
}

function main2() {
// DO NOT PUT CONST, otherwise you can't edit
let it = makeRangeIterator2(1, 10, 2);
const it = makeRangeIterator2(1, 10, 2);

let count = 0;
let result = it.next();
Expand Down Expand Up @@ -98,8 +96,7 @@ function makeRangeIterator3(start = 0, end = 10000, step = 1) {
}

function main3() {
// DO NOT PUT CONST, otherwise you can't edit
let it = makeRangeIterator3(1, 10, 2);
const it = makeRangeIterator3(1, 10, 2);

let count = 0;
let result = it.next();
Expand Down
Loading