OLD | NEW |
---|---|
(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 } | |
OLD | NEW |