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

Unified Diff: test/samples/trusttypes1.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/runtimetypechecktest.dart ('k') | test/samples/trusttypes2.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/samples/trusttypes1.dart
diff --git a/test/samples/trusttypes1.dart b/test/samples/trusttypes1.dart
deleted file mode 100644
index 86bd39b64dccaccb119d4a3e522bca94f77a1d40..0000000000000000000000000000000000000000
--- a/test/samples/trusttypes1.dart
+++ /dev/null
@@ -1,28 +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.
-
-import 'dart:math';
-
-class A {
- int x = 42;
-}
-void bar(A a) {
- // Is this integer addition?
- print(a.x + a.x);
-}
-
-void main() {
- Map<A, Function> map = <A, Function>{
- new A(): bar,
- new B(new Point<int>(1, 2)): print,
- };
- map.forEach((A a, Function f) => f(a));
-}
-
-class B extends A {
- var _x;
- B(this._x);
-
- get x => _x;
-}
« no previous file with comments | « test/samples/runtimetypechecktest.dart ('k') | test/samples/trusttypes2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698