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
/
construct_default_values2.php
blob
f455d106d1b98b49d6f4b02ca1c6fc74231aa678
1
<
?hh
// strict
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
class
B
{
5
public function
foo
():
int
{
6
return
2
;
7
}
8
}
9
class
C
{
10
public function
__construct
(
11
private
B
$b
=
new
B
(),
12
int
$x
=
$this
->
b
->
foo
(),
13
) {}
14
}