Chromium Code Reviews| Index: client/samples/dartcombat/views.dart |
| diff --git a/client/samples/dartcombat/views.dart b/client/samples/dartcombat/views.dart |
| index 9d96166bb0d74001b04b74b93557724c4f24d125..3b411e24d3a0eba2536a0d5b0d52deac34dea806 100644 |
| --- a/client/samples/dartcombat/views.dart |
| +++ b/client/samples/dartcombat/views.dart |
| @@ -282,7 +282,7 @@ class ViewUtil { |
| gridNode.rect.then((ElementRect rect) { |
| int x = (e.pageX - rect.offset.left) ~/ 50; |
| int y = (e.pageY - rect.offset.top) ~/ 50; |
| - completer.complete(const [x, y]); |
| + completer.complete([x, y]); |
|
jimhug
2011/11/08 15:39:01
Why did you lose the const here?
Siggi Cherem (dart-lang)
2011/11/08 17:56:42
Basically x, y are variables, which are not allowe
|
| }); |
| return completer.future; |
| } |