New inference: improved error message for unresolved type
[hiphop-php.git] / hphp / hack / test / typecheck / inout / shapes_remove_key2.php
blob8aaeef07e2d9db3ae06bcc7e59ab483969333737
1 <?hh // strict
3 function test(): void {
4 $s = shape('x' => 4, 'y' => 'aaa');
5 Shapes::removeKey($s, 'x'); // error for safe-pass-by-ref
6 $s['y']; // no error