Disallow ... without type in function typehints
[hiphop-php.git] / hphp / hack / test / typecheck / decl_async_expr_hints.php
blob6d1e49e1c3c9913c5cbb67803c9bc093f9c563eb
1 <?hh // partial
2 /**
3 * Copyright (c) 2014, Facebook, Inc.
4 * All rights reserved.
6 * This source code is licensed under the MIT license found in the
7 * LICENSE file in the "hack" directory of this source tree.
12 function f(): void {
13 return async function(array<int> $a): Awaitable<array<int>> {
14 // This statement will not parse in Hack, but we should not raise an error
15 // in decl mode.
16 break 100;