No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / async_block2.php
blob7c7251b84c74ae97bf6a3c0df02f3640f6f34973
1 <?hh // strict
3 async function g(): Awaitable<int> {
4 return 1;
7 async function f(): Awaitable<string> {
8 $q = async {
9 $a = await g();
10 return $a;
12 return await $q;