No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / fun_contra.php
blob61510b409b934f388c7b5b398b217aea44d431e4
1 <?hh // strict
2 // Copyright 2004-present Facebook. All Rights Reserved.
4 function TakeFun((function(int): arraykey) $f): void {
5 ($f)(3);
7 function Pass((function(arraykey): int) $g): void {
8 TakeFun($g);
10 function DoIt(): void {
11 Pass((arraykey $x) ==> 5);
14 function main(): void {
15 DoIt();