New inference: improved error message for unresolved type
[hiphop-php.git] / hphp / hack / test / typecheck / inout / bad_inout_use_call2.php
blobcff920bae0c426ed14a3a796d113d40cdc99bca6
1 <?hh // strict
3 function multiply(inout num $n, num $m): void {
4 $n *= (float)$m;
7 function test(): int {
8 $x = 21;
9 multiply(inout $x, 2);
10 return $x;