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

Side by Side Diff: test/codegen/language/list_mixin_test.dart

Issue 1949163003: fix for #520, ListMixin should work again (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « test/browser/language_tests.js ('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 import 'dart:collection';
2 import 'package:expect/expect.dart';
3
4 class MyList extends ListBase {
5 int get length => 4;
6 set length(int x) {}
7 int operator[](int x) => 42;
8 void operator[]=(int x, val) {}
9 }
10
11 main() {
12 var x = new MyList();
13 int z = 0;
14 x.forEach((y) { z += y; });
15 Expect.equals(z, 4 * 42);
16 }
OLDNEW
« no previous file with comments | « test/browser/language_tests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698