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

Unified Diff: tests/language/src/TypeVariableScopeTest.dart

Issue 10248007: test rename overhaul: step 8 - language tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
Index: tests/language/src/TypeVariableScopeTest.dart
diff --git a/tests/language/src/TypeVariableScopeTest.dart b/tests/language/src/TypeVariableScopeTest.dart
deleted file mode 100644
index 7ace0f3fb5d33271bd8953285a3ce5db1e048cb6..0000000000000000000000000000000000000000
--- a/tests/language/src/TypeVariableScopeTest.dart
+++ /dev/null
@@ -1,42 +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.
-// VMOptions=--enable_type_checks
-
-// Test that type variables aren't in scope of static methods and factories.
-
-class Foo<T> {
- // T is not in scope for a static method.
- static
- Foo<T> /// 00: compile-time error
- m(
- Foo<T> /// 01: compile-time error
- f) {
- I<T> x; /// 02: compile-time error
- }
-
- // T is in scope for a factory method.
- factory I(I<T> i) {
- I<T> x;
- }
-
- // T is not in scope for a static field.
- static Foo<T> f1; /// 03: compile-time error
-
- static
- Foo<T> /// 04: compile-time error
- get f() { return null; }
-
- static void set f(
- Foo<T> /// 05: compile-time error
- value) {}
-}
-
-interface I<T> default Foo<T> {
- I(I<T> i);
-}
-
-main() {
- Foo.m(null);
- new I(null);
-}
« no previous file with comments | « tests/language/src/TypeVariableIdentifierExpressionNegativeTest.dart ('k') | tests/language/src/TypeVariableShadowsClass.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698