repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No error on use of `unsafe_cast`
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
newtype1.php
blob
ff5114a8799be80d937f7b938824196e99306575
1
//// file1.php
2
<
?hh
// partial
3
/**
4
* Copyright (c) 2014, Facebook, Inc.
5
* All rights reserved.
6
*
7
* This source code is licensed under the MIT license found in the
8
* LICENSE file in the "hack" directory of this source tree.
9
*
10
*
11
*/
12
13
newtype fbid
=
int
;
14
15
//// file2.php
16
<
?hh
// partial
17
18
function
test
(
fbid
$x
):
int
{
19
return
$x
;
20
}