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
Additional tests to verify Hack visibility expansion in type hierarchies
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
visibilities
/
T59074374.php
blob
aeed3ef6c9a1c342a82d38f4846b27e56d3c26d9
1
<
?hh
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
class
A
{
5
protected function
__construct
(){}
6
}
7
8
class
B
extends
A
{
9
public function
__construct
(){
10
parent
::
__construct
();
11
}
12
}
13
14
interface
I
{
15
require extends
B
;
16
}
17
18
class
C
extends
B
implements
I
{
19
20
}
21
22
trait T
implements
I
{
23
24
}
25
26
class
D
extends
B
{
27
use
T
;
28
}