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
/
infinity.php
blob
a72b00003657b0a21e5fcdeab4fa42208344e7f1
1
<
?hh
// strict
2
3
class
A
{
4
public
int
$infinity
=
0
;
5
public function
cmp
(
A
$other
):
int
{
6
return
$this
->
infinity
-
$other
->
infinity
;
7
}
8
}