blob: 99e332e0d64e94cf8dfa3aedc1b072a02176a4cd [file] [log] [blame]
// Copyright (c) 2011, 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.
/**
* @assertion It is no static warning if a function contains both one or more
* return statements of the form return; and one or more return statements of
* the form return e;.
*
* @description Checks that it is no static warning if a function has explicit
* return statements of different kind.
* https://github.com/dart-lang/sdk/issues/39476
* @static-clean
* @author ilya
*/
f(x) {
if (x)
return 1;
else
return;
}
main() {
f(true);
}