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

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

Issue 10970006: Correctly handle const constructors with type parameters. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | « no previous file | lib/compiler/implementation/resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/lib/math_patch.dart
===================================================================
--- lib/compiler/implementation/lib/math_patch.dart (revision 12694)
+++ lib/compiler/implementation/lib/math_patch.dart (working copy)
@@ -49,7 +49,7 @@
class _Random implements Random {
// The Dart2JS implementation of Random doesn't use a seed.
- _Random();
+ const _Random();
int nextInt(int max) {
if (max < 0) throw new IllegalArgumentException("negative max: $max");
« no previous file with comments | « no previous file | lib/compiler/implementation/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698