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
Move tests that only checks first error to subfolder
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
reactive
/
only_first_error
/
static_rx_if_implements8_1.php
blob
1793d0e1cc41123e68494a4265bb68a598eb44c6
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 static function
g
() {
15
// should be an error, B does not implement Rx
16
parent
::
f
();
17
}
18
}