Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 import 'dart:collection'; | |
| 6 | |
| 7 abstract class A { | |
| 8 } | |
| 9 | |
| 10 abstract class B extends Object with IterableMixin<int> { | |
| 11 Iterator<int> get iterator; | |
| 12 } | |
| 13 | |
| 14 abstract class C extends A with IterableMixin<int> implements B { | |
| 15 final list = [1,2,3,4,5]; | |
| 16 Iterator<int> get iterator => list.iterator; | |
| 17 } | |
| 18 | |
| 19 class D extends C { | |
| 20 } | |
| 21 | |
| 22 void main() { | |
| 23 var d = new D(); | |
| 24 for(var i in d) { | |
| 25 print(i); | |
|
siva
2015/03/10 18:31:34
Change this to an Expect.
regis
2015/03/10 18:39:17
Done.
| |
| 26 } | |
| 27 } | |
| 28 | |
| OLD | NEW |