No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / unify_unresolved.php
blob659f8016d321f5b55eec2a9b8c69c03c402f3639
1 <?hh // strict
2 // Copyright 2004-present Facebook. All Rights Reserved.
4 function test(arraykey $x): void {
5 $v = Vector {$x};
6 $v[] = 'foo';
7 hh_show($v); // should be Vector<arraykey> not Vector<(arraykey | string)>