37560ff519
BUG=http://dartbug.com/11478 R=ngeoffray@google.com Review URL: https://codereview.chromium.org//19250002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25093 260f80e4-7a28-3924-810f-c04153c831b5
14 lines
368 B
Dart
14 lines
368 B
Dart
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
import "package:expect/expect.dart";
|
|
|
|
int bar(x) => foo(x+1);
|
|
int foo(x) => x > 9 ? x : bar(x);
|
|
|
|
main() {
|
|
Expect.equals(foo(int.parse("1")), 10);
|
|
}
|
|
|