Check for void/noreturn in conditionals
[hiphop-php.git] / hphp / hack / test / typecheck / shape31.php
blobe1016e88275bfe2e9b205bf1e1c952d03acc1eb2
1 <?hh
3 function test(string $key): void {
4 $s = shape();
5 /* HH_FIXME[4051] - there should only be one error,
6 and single HH_FIXME should squash it */
7 $s[$key] = 4;