Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1463)

Side by Side Diff: tests/language/regress_22719_test.dart

Issue 994103002: Make sure the mixin class is finalized immediately (and not some time later) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698