No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / async_block1.php
blobae2f48abe08311da15bba27bea7808aec4cf048c
1 <?hh // partial
3 async function g(): Awaitable<int> {
4 return 1;
7 async function f(): Awaitable<int> {
8 $q = async {
9 $a = await g();
10 return $a;
12 return await $q;
15 function h(): Awaitable<int> {
16 return async {
17 return 1;
21 $a = async {
22 return 1;