No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / newtype1.php
blobff5114a8799be80d937f7b938824196e99306575
1 //// file1.php
2 <?hh // partial
3 /**
4 * Copyright (c) 2014, Facebook, Inc.
5 * All rights reserved.
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the "hack" directory of this source tree.
13 newtype fbid = int;
15 //// file2.php
16 <?hh // partial
18 function test(fbid $x): int {
19 return $x;