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

Unified Diff: tests/language_strong/type_variable_scope_test.dart

Issue 3008723002: Migrate block 163 to Dart 2.0. (Closed)
Patch Set: Merge fixups Created 3 years, 4 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_strong/type_variable_scope_test.dart
diff --git a/tests/language_strong/type_variable_scope_test.dart b/tests/language_strong/type_variable_scope_test.dart
deleted file mode 100644
index efc55e38582deae7104b781f5dd43294b645272e..0000000000000000000000000000000000000000
--- a/tests/language_strong/type_variable_scope_test.dart
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2012, 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.
-
-// Test that type variables referenced from within static members are malformed.
-
-class Foo<T> {
- Foo() {}
-
- static
- Foo<T> //# 00: static type warning
- m(
- Foo<T> //# 01: static type warning
- f) {
- Foo<T> x = new Foo<String>(); //# 02: static type warning
- return new Foo<String>();
- }
-
- // T is in scope for a factory method.
- factory Foo.I(Foo<T> f) {
- Foo<T> x = f;
- }
-
- // T is not in scope for a static field.
- static Foo<T> f1; //# 03: static type warning
-
- static
- Foo<T> //# 04: static type warning
- get f {
- return new Foo<String>();
- }
-
- static void set f(
- Foo<T> //# 05: static type warning
- value) {}
-}
-
-abstract class I<T> {
- factory I(Foo<T> f) = Foo<T>.I;
-}
-
-main() {
- Foo.m(new Foo<String>());
- new I(new Foo<String>());
- Foo.f1 = new Foo<String>(); //# 03: continued
- var x = Foo.f;
- Foo.f = x;
-}

Powered by Google App Engine
This is Rietveld 408576698