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
Fix build break after oxidized regen
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
reactive
/
static_rx_if_implements6.php
blob
d054549898b17072b5373ebd710613aa63bd8eae
1
<
?hh
// strict
2
3
interface
Rx
{}
4
5
class
A
{
6
<<
__Rx
,
__OnlyRxIfImpl
(
Rx
::
class
)>>
7
public static function
f
():
int
{
8
return
1
;
9
}
10
}
11
12
class
B
extends
A
{
13
<<
__Rx
>>
14
public function
g
() {
15
// should be an error, B does not implement Rx
16
self
::
f
();
17
}
18
}