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

Unified Diff: test/samples/return_test.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/imported_file.dart ('k') | test/samples/runtimetypechecktest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/samples/return_test.dart
diff --git a/test/samples/return_test.dart b/test/samples/return_test.dart
deleted file mode 100644
index 4c9609d0f5d88f52f6480673b6546e721715b395..0000000000000000000000000000000000000000
--- a/test/samples/return_test.dart
+++ /dev/null
@@ -1,37 +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.
-
-dynamic a = 42;
-
-// This requires a check / unbox.
-int get b => a;
-
-// This requires a type check.
-String c() => a;
-
-d() {
- return a;
-}
-
-// This requires a type check.
-String e() {
- return a;
-}
-
-class A {
- A.named();
-
- factory A() => a;
-}
-
-void main() {
- print(a);
- print(b);
- a = "Hello";
- print(c());
- print(d());
- print(e());
- a = new A.named();
- print(new A());
-}
« no previous file with comments | « test/samples/imported_file.dart ('k') | test/samples/runtimetypechecktest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698