2016-06-23 12:47:54 -04:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
2017-03-01 18:18:10 -05:00
|
|
|
import {getSymbolIterator} from '@angular/core/src/util';
|
2015-05-26 20:12:38 -04:00
|
|
|
|
|
|
|
export class TestIterable {
|
2015-08-28 14:29:19 -04:00
|
|
|
list: number[];
|
2015-05-26 20:12:38 -04:00
|
|
|
constructor() { this.list = []; }
|
|
|
|
|
2016-06-08 18:45:15 -04:00
|
|
|
[getSymbolIterator()]() { return (this.list as any)[getSymbolIterator()](); }
|
2015-05-26 20:12:38 -04:00
|
|
|
}
|