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

Side by Side Diff: tests/kernel/unsorted/factory_regression_test.dart

Issue 2434123003: Merge more Kernel infrastructure from kernel_sdk SDK fork. (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
(Empty)
1 import 'dart:typed_data';
Kevin Millikin (Google) 2016/10/21 09:10:57 Copyright header.
2
3 import 'expect.dart';
4
5 var list = [1, 2, 3];
6
7 class Foo {
8 final value;
9 Foo(this.value) {}
10
11 factory Foo.fac(value) {
12 return new Foo(value);
13 }
14 }
15
16 main() {
17 Expect.isTrue(new Uint8List.fromList(list)[1] == 2);
18 Expect.isTrue(new Foo.fac(10).value == 10);
19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698