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
/
xhp_attr_2.php
blob
f5e27aa78563e7e76fa4b249276070f4df23c00c
1
<
?hh
// strict
2
class
:
foo
extends
XHPTest
{
3
attribute
int
x
=
0
;
4
public
string
$x
=
""
;
5
}
6
function
test1
(:
foo
$obj
):
int
{
7
return
$obj
->:
x
;
8
}
9
function
test2
(:
foo
$obj
):
string
{
10
return
$obj
->
x
;
11
}