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

Unified Diff: tests/language/function_type_alias_test.dart

Issue 12940010: Update function subtyping rules to latest spec (issue 9057). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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/co19/co19-runtime.status ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/function_type_alias_test.dart
===================================================================
--- tests/language/function_type_alias_test.dart (revision 20492)
+++ tests/language/function_type_alias_test.dart (working copy)
@@ -87,11 +87,11 @@
Expect.equals(99, test(minus, 100, 1));
int plus (int a, [int b = 1]) { return a + b; };
- Expect.isTrue(plus is !Fun);
- Expect.isTrue(plus is !IntFun);
+ Expect.isTrue(plus is Fun);
+ Expect.isTrue(plus is IntFun);
Expect.isTrue(plus is !BoolFun);
- Expect.isTrue(plus is !CompareObj);
- Expect.isTrue(plus is !CompareInt);
+ Expect.isTrue(plus is CompareObj);
+ Expect.isTrue(plus is CompareInt);
Expect.isTrue(plus is !CompareString);
Expect.equals(0, bar());
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698