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

Unified Diff: samples/chat/chat_server_lib.dart

Issue 10787021: 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
« no previous file with comments | « runtime/vm/snapshot_test.cc ('k') | tests/co19/co19-runtime.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/chat/chat_server_lib.dart
===================================================================
--- samples/chat/chat_server_lib.dart (revision 9680)
+++ samples/chat/chat_server_lib.dart (working copy)
@@ -58,7 +58,7 @@
markActivity();
}
- void markActivity() => _lastActive = new Date.now();
+ void markActivity() { _lastActive = new Date.now(); }
Duration idleTime(Date now) => now.difference(_lastActive);
String get handle() => _handle;
@@ -90,7 +90,7 @@
User get from() => _from;
Date get received() => _received;
String get message() => _message;
- void set messageNumber(int n) => _messageNumber = n;
+ void set messageNumber(int n) { _messageNumber = n; }
Map toMap() {
Map map = new Map();
« no previous file with comments | « runtime/vm/snapshot_test.cc ('k') | tests/co19/co19-runtime.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698