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

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 import 'package:expect/expect.dart';
7
8 abstract class A {
9 }
10
11 abstract class B extends Object with IterableMixin<int> {
12 Iterator<int> get iterator;
13 }
14
15 abstract class C extends A with IterableMixin<int> implements B {
16 final list = [1,2,3,4,5];
17 Iterator<int> get iterator => list.iterator;
18 }
19
20 class D extends C {
21 }
22
23 void main() {
24 var d = new D();
25 var expected = 1;
26 for(var i in d) {
27 Expect.equals(expected, i);
28 expected += 1;
29 }
30 }
31
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