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

Unified Diff: lib/compiler/implementation/lib/js_helper.dart

Issue 11361060: Support checked mode for return type. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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: lib/compiler/implementation/lib/js_helper.dart
===================================================================
--- lib/compiler/implementation/lib/js_helper.dart (revision 14460)
+++ lib/compiler/implementation/lib/js_helper.dart (working copy)
@@ -1375,6 +1375,8 @@
propertyTypeCastError(value, property);
}
+voidTypeCheck(value) => identical(value, null);
kasperl 2012/11/02 12:53:05 This may be what the spec says today, but I still
sra1 2012/11/02 20:13:51 We *do* want to allow void foo() => bar(); Th
+
/**
* Special interface recognized by the compiler and implemented by DOM
* objects that support integer indexing. This interface is not

Powered by Google App Engine
This is Rietveld 408576698