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

Unified Diff: tests/language/generic_function_typedef_test.dart

Issue 3008573002: Migrate test block 113 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
« no previous file with comments | « tests/language/generic_function_typedef2_test.dart ('k') | tests/language/generic_functions_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/generic_function_typedef_test.dart
diff --git a/tests/language/generic_function_typedef_test.dart b/tests/language/generic_function_typedef_test.dart
deleted file mode 100644
index c8670d8ef27afa11213075adf6861b59986d450b..0000000000000000000000000000000000000000
--- a/tests/language/generic_function_typedef_test.dart
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) 2017, 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.
-// Dart test for a function type test that cannot be eliminated at compile time.
-
-// VMOptions=--generic-method-syntax --no-reify-generic-functions
-
-import "package:expect/expect.dart";
-
-class A {}
-
-typedef F<T> = Function<S>(List<S> list, Function<A>(A), T);
-
-foo(List<dynamic> x, bar(String y), int z) {}
-foo2(List<int> x, bar(String y), int z) {}
-
-main() {
- Expect.isTrue(foo is F);
- Expect.isTrue(foo is F<int>);
- Expect.isFalse(foo is F<bool>);
-
- Expect.isTrue(foo2 is F);
- Expect.isTrue(foo2 is F<int>);
- Expect.isFalse(foo2 is F<bool>);
-}
« no previous file with comments | « tests/language/generic_function_typedef2_test.dart ('k') | tests/language/generic_functions_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698