No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / typing_function2.php
blobfb4bb19700f175692d5c17d682df1e4a79754e4c
1 <?hh // strict
2 /**
3 * Copyright (c) 2014, Facebook, Inc.
4 * All rights reserved.
6 * This source code is licensed under the MIT license found in the
7 * LICENSE file in the "hack" directory of this source tree.
12 class C {
13 public static function f(int $x): int {
14 return 0;
18 function test(): void {
19 $y = (fun('C::f'))(32);