Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 // Regression test for http://dartbug.com/22895/ | |
| 6 // Ensure that the type graph is retained in presence of await. | |
| 7 | |
| 8 main() async { | |
| 9 var closures = [(x, y) => x + y]; | |
| 10 print(((await closures)[0])(4, 2)); | |
| 11 } | |
| OLD | NEW |