blob: 514e09ac994380c0cfca039a9ed2b59a4e2864ed [file] [log] [blame]
// Copyright (c) 2016, 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.
// Formatting can break multitests, so don't format them.
// dart format off
// `FutureOr<T>` is only visible when `dart:async` is imported.
dynamic foo(dynamic x) {
return x as
FutureOr< //# 00: compile-time error
int
> // //# 00: continued
;
}
main() {
if (499 != foo(499)) throw "bad";
}