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

Unified Diff: tests/language/function_subtype_optional1_test.dart

Issue 17413013: Revert "Support runtime check of function types." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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/function_subtype_null.dart ('k') | tests/language/function_subtype_optional2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/function_subtype_optional1_test.dart
diff --git a/tests/language/function_subtype_optional1_test.dart b/tests/language/function_subtype_optional1_test.dart
deleted file mode 100644
index 743fef848b8e960f0f13376a0ef97dc2f1de02a3..0000000000000000000000000000000000000000
--- a/tests/language/function_subtype_optional1_test.dart
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) 2013, 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 program for constructors and initializers.
-
-// Check function subtyping.
-
-import 'package:expect/expect.dart';
-
-void void_() {}
-void void__int(int i) {}
-void void___int([int i]) {}
-void void___int2([int i]) {}
-void void___Object([Object o]) {}
-void void__int__int(int i1, [int i2]) {}
-void void__int__int2(int i1, [int i2]) {}
-void void__int__int_int(int i1, [int i2, int i3]);
-void void___double(double d) {}
-void void___int_int([int i1, int i2]) {}
-void void___int_int_int([int i1, int i2, int i3]);
-void void___Object_int([Object o, int i]) {}
-
-typedef void t_void_();
-typedef void t_void__int(int i);
-typedef void t_void___int([int i]);
-typedef void t_void___int2([int i]);
-typedef void t_void___Object([Object o]);
-typedef void t_void__int__int(int i1, [int i2]);
-typedef void t_void__int__int2(int i1, [int i2]);
-typedef void t_void__int__int_int(int i1, [int i2, int i3]);
-typedef void t_void___double(double d);
-typedef void t_void___int_int([int i1, int i2]);
-typedef void t_void___int_int_int([int i1, int i2, int i3]);
-typedef void t_void___Object_int([Object o, int i]);
-
-main() {
- // Test ([int])->void <: ()->void.
- Expect.isTrue(void___int is t_void_);
- // Test ([int])->void <: (int)->void.
- Expect.isTrue(void___int is t_void__int);
- // Test (int)->void <: ([int])->void.
- Expect.isFalse(void__int is t_void___int);
- // Test ([int])->void <: ([int])->void.
- Expect.isTrue(void___int is t_void___int2);
- // Test ([Object])->void <: ([int])->void.
- Expect.isTrue(void___Object is t_void___int);
- // Test ([int])->void <: ([Object])->void.
- Expect.isTrue(void___int is t_void___Object);
- // Test (int,[int])->void <: (int)->void.
- Expect.isTrue(void__int__int is t_void__int);
- // Test (int,[int])->void <: (int,[int])->void.
- Expect.isTrue(void__int__int is t_void__int__int2);
- // Test (int)->void <: ([int])->void.
- Expect.isFalse(void__int is t_void___int);
- // Test ([int,int])->void <: (int)->void.
- Expect.isTrue(void___int_int is t_void__int);
- // Test ([int,int])->void <: (int,[int])->void.
- Expect.isTrue(void___int_int is t_void__int__int);
- // Test ([int,int])->void <: (int,[int,int])->void.
- Expect.isFalse(void___int_int is t_void__int__int_int);
- // Test ([int,int,int])->void <: (int,[int,int])->void.
- Expect.isTrue(void___int_int_int is t_void__int__int_int);
- // Test ([int])->void <: ([double])->void.
- Expect.isFalse(void___int is t_void___double);
- // Test ([int])->void <: ([int,int])->void.
- Expect.isFalse(void___int is t_void___int_int);
- // Test ([int,int])->void <: ([int])->void.
- Expect.isTrue(void___int_int is t_void___int);
- // Test ([Object,int])->void <: ([int])->void.
- Expect.isTrue(void___Object_int is t_void___int);
-}
« no previous file with comments | « tests/language/function_subtype_null.dart ('k') | tests/language/function_subtype_optional2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698