Check for void/noreturn in conditionals
[hiphop-php.git] / hphp / hack / test / typecheck / async_block3.php
blobf3420e38b87a3a5934e99bdac1ab4326acb0a1e4
1 <?hh // strict
3 async function f(): Awaitable<string> {
4 $x = () ==> async {
5 return 'foo';
6 };
7 return await $x();