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

Unified Diff: test/samples/runtimetypechecktest.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/return_test.dart ('k') | test/samples/trusttypes1.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/samples/runtimetypechecktest.dart
diff --git a/test/samples/runtimetypechecktest.dart b/test/samples/runtimetypechecktest.dart
deleted file mode 100644
index 749200cde1a1326c5149fb93c6559dd5f6b5b495..0000000000000000000000000000000000000000
--- a/test/samples/runtimetypechecktest.dart
+++ /dev/null
@@ -1,33 +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.
-
-library runtimetypechecktest;
-
-class A<T> {
- T x;
- A(this.x);
-
- isT(t) => t is T;
-}
-
-class B extends A<int> {
- B(int x) : super(x);
-}
-
-int foo(B b) => b.x;
-
-typedef int Foo(B b);
-
-void main() {
- var a = new B(42);
- print(a is A);
- print(a as A);
- print(a is B);
- print(a as B);
- print(a is A<int>);
- print(a as A<int>);
- print(foo is Foo);
- print(a is dynamic);
- print(a as dynamic);
-}
« no previous file with comments | « test/samples/return_test.dart ('k') | test/samples/trusttypes1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698