Error on self::class on non final classes
[hiphop-php.git] / hphp / hack / test / typecheck / shape_remove_key5.php
blob70b3e09baeb69e159f3124b8d60e07da52777d79
1 <?hh //strict
3 /**
4 * removeKey allows unsetting any key, but it still must be statically
5 * known
6 */
7 type s = shape(
8 'x' => int,
9 'y' => string,
12 function test(s $s, string $k): void {
13 Shapes::removeKey(inout $s, $k);