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

Unified Diff: dart/compiler/javatests/com/google/dart/compiler/end2end/NonStrictResolutionTest.dart

Issue 20722006: Removed compiler/ directory from repository (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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
Index: dart/compiler/javatests/com/google/dart/compiler/end2end/NonStrictResolutionTest.dart
diff --git a/dart/compiler/javatests/com/google/dart/compiler/end2end/NonStrictResolutionTest.dart b/dart/compiler/javatests/com/google/dart/compiler/end2end/NonStrictResolutionTest.dart
deleted file mode 100644
index 0a59022b24c2660415f592273ff29bb9cf7faef2..0000000000000000000000000000000000000000
--- a/dart/compiler/javatests/com/google/dart/compiler/end2end/NonStrictResolutionTest.dart
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 2011, 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.
-
-// uses experimental flag: --warn_no_such_type that allows compilation
-// to succeed even when types fail to resolve. in the cases below, the
-// application should still succeed at runtime.
-
-class A {
- A(this.x);
-
- static type1 foo() {
- return 123;
- }
-
- type2 x;
-
- type3 myMethod(type4 param) {
- return param + x;
- }
-
- type5 get X {
- return x;
- }
-
- type6 bar(type7 param) {
- type8 v1 = param + 1;
- type9 v2 = v1 + X;
- return v2;
- }
-}
-
-main() {
- // static method returning unresolved type.
- Expect.equals(A.foo(), 123);
-
- // Field with unresolved type
- A a = new A(1);
- Expect.equals(a.x, 1);
-
- // Parameter with unresolved type.
- Expect.equals(a.myMethod(1), 2);
-
- // Getter
- Expect.equals(a.X, 1);
-
- // Local vars
- Expect.equals(a.bar(1), 3);
-}

Powered by Google App Engine
This is Rietveld 408576698