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

Unified Diff: test/samples/trusttypes2.dart

Issue 1879373004: Implement modular compilation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/samples/trusttypes1.dart ('k') | test/utils_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/samples/trusttypes2.dart
diff --git a/test/samples/trusttypes2.dart b/test/samples/trusttypes2.dart
deleted file mode 100644
index a91353fbeba3f4f90bf164d9b56fe24bf1addeb5..0000000000000000000000000000000000000000
--- a/test/samples/trusttypes2.dart
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-class A {
- int x = 42;
-}
-
-typedef int AA(A a);
-
-void bar(AA aa, a) {
- // Is this integer addition?
- print(aa(a) + aa(a));
-}
-
-void main() {
- List<A> list = <A>[];
- list.add(new A());
- list.add(new B(new Point(1, 2)));
- list.forEach((A a) => bar((a) => a.x, a));
-}
-
-class B extends A {
- var _x;
- B(this._x);
-
- get x => _x;
-}
-
-class Point {
- int x;
- int y;
- Point(this.x, this.y);
- Point operator +(Point other) {
- return new Point(this.x + other.x, this.y + other.y);
- }
- String toString() => "($x, $y)";
-}
« no previous file with comments | « test/samples/trusttypes1.dart ('k') | test/utils_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698