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 /// Test derived from a broken co19 test | 5 /// Test derived from a broken co19 test |
6 /// (LayoutTests/fast/mediastream/getusermedia_t01.dart). Caused dart2js to | 6 /// (LayoutTests/fast/mediastream/getusermedia_t01.dart). Caused dart2js to |
7 /// crash. | 7 /// crash. |
8 | 8 |
9 foo() {} | 9 foo() {} |
10 | 10 |
11 gotStream1(stream) { | 11 gotStream1(stream) { |
12 foo() | 12 foo() |
13 . /// 01: compile-time error | 13 . //# 01: compile-time error |
14 .then(); | 14 .then(); |
15 } | 15 } |
16 | 16 |
17 void main() { | 17 void main() { |
18 print(gotStream1); | 18 print(gotStream1); |
19 } | 19 } |
OLD | NEW |