Disallow ... without type in function typehints
[hiphop-php.git] / hphp / hack / test / typecheck / await_on_awaitable.php
blob4cbeb589d1565a9fc54b0b914c276f11907b509f
1 <?hh // strict
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 async function slow_print(Awaitable<string> $x): Awaitable<void> {
13 $a = await $x;
14 display($a);
17 function display(string $y): void {
18 print $y;