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

Unified Diff: tests/language/generics_test.dart

Issue 10704216: Fix type checking of void type. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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/generics_test.dart
===================================================================
--- tests/language/generics_test.dart (revision 9649)
+++ tests/language/generics_test.dart (working copy)
@@ -22,7 +22,6 @@
takesVoidMethod(void _(int a) {
Expect.equals(2, a);
- return 99;
});
takesGenericMapMethod(Map<int, int> _(int a) {
@@ -42,7 +41,7 @@
}
static void takesVoidMethod(void f(int a)) {
- Expect.equals(99, f(2));
+ f(2);
}
static void takesIntMethod(int f(int a)) {

Powered by Google App Engine
This is Rietveld 408576698