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

Side by Side Diff: tests/language/src/Closure4Test.dart

Issue 10091036: Don't try to box immutable objects. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase and update status file. Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 // Having a declared function being captured within self tripped the dart2js
ngeoffray 2012/04/17 13:06:12 self tripped -> used to self trip
floitsch 2012/04/17 13:09:00 that's not what I wanted to say. But reworded.
6 // compiler.
7
8 foo(f) => f(499);
9
10 main() {
11 void fun(x) {
12 if (x < 3) {
13 return foo((x) => fun(x));
14 } else {
15 return x;
16 }
17 }
18 Expect.equals(499, fun(499));
19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698