blob: db2f6f345984a9fc514d9b11a998f6501077b416 [file] [log] [blame]
// Copyright (c) 2015, the Dart Team. All rights reserved. Use of this
// source code is governed by a BSD-style license that can be found in
// the LICENSE file.
import "package:expect/expect.dart";
@NoInline() @AssumeDynamic()
confuse(x) => x;
Iterable<int> foo() sync* {
var a = confuse(1);
if (a < 10) {
yield 2;
}
}
main() {
Expect.listEquals(foo().toList(), [2]);
}