| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of debugger; | 5 // Regression test for http://dartbug.com/22895/ |
| 6 // Ensure that the type graph is retained in presence of await. |
| 6 | 7 |
| 7 // TODO(turnidge): Move more of ObservatoryDebugger to this class. | 8 main() async { |
| 8 abstract class Debugger { | 9 var closures = [(x, y) => x + y]; |
| 9 Isolate get isolate; | 10 print(((await closures)[0])(4, 2)); |
| 10 ServiceMap get stack; | |
| 11 int get currentFrame; | |
| 12 } | 11 } |
| OLD | NEW |