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_consist2.php
blob
3418b6e3a15cad8d6722d326b5c26f163afea59e
1
<
?hh
// partial
2
3
<<
__ConsistentConstruct
>>
4
class
C1
{}
5
6
class
C2
extends
C1
{
7
// optional arg is ok
8
public function
__construct
(
?A
$a
=
null
) {}
9
}
10
11
class
C3
extends
C1
{
12
// another default constructor is OK
13
}
14
15
class
A
{}