blob: ee67a15266747b69fc59d0a65e641b8a78ed5c8e [file] [log] [blame]
// Copyright (c) 2022, 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.
Iterable takesNoArg() => throw '';
void returnVoid() {}
int returnInt() => 42;
dynamic returnDynamic() => [];
Object returnObject() => 0;
test() {
for (var v in takesNoArg(0)) {}
for (var v in returnVoid()) {}
for (var v in returnInt()) {}
for (var v in returnDynamic()) {}
for (var v in returnObject()) {}
for (var v in throw '') {}
}
main() {}