2015-01-15 12:12:22 +00:00
|
|
|
// Copyright (c) 2015, 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.
|
|
|
|
|
2020-03-21 16:12:36 +00:00
|
|
|
// @dart = 2.7
|
|
|
|
|
2015-01-15 12:12:22 +00:00
|
|
|
/// Test derived from a broken co19 test
|
|
|
|
/// (LayoutTests/fast/mediastream/getusermedia_t01.dart). Caused dart2js to
|
|
|
|
/// crash.
|
|
|
|
|
|
|
|
foo() {}
|
|
|
|
|
|
|
|
gotStream1(stream) {
|
|
|
|
foo()
|
2017-03-22 00:29:56 +00:00
|
|
|
. //# 01: compile-time error
|
2015-01-15 12:12:22 +00:00
|
|
|
.then();
|
|
|
|
}
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
print(gotStream1);
|
|
|
|
}
|