Untyped variadic function types should not be permitted in strict mode
[hiphop-php.git] / hphp / hack / test / typecheck / unset_shape_idx.php
blob9bb31d04ab469b0a8ba047098ca2c34f1adbca14
1 <?hh // strict
3 type s = shape('blah' => int);
4 function f(s $s): int {
5 // even though we allow unset on *array* indexes,
6 // we shouldn't allow it on shapes
7 unset($s['blah']);
8 return $s['blah'];