blob: 49a1e1de80247567fb731231cab59fd1ed9b4cdd [file] [log] [blame]
// Copyright (c) 2017, 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.
// @dart=2.9
library test;
T run<T>(T f()) {
var /*@ type=run::T* */ t = f();
print("done running");
return t;
void printRunning() {
var y = /*info:USE_OF_VOID_RESULT*/ /*@ typeArgs=void */ run(printRunning);
main() {}