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
Error on self::class on non final classes
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
trait_bad_pos.php
blob
c90afb03fe4abac61a1253ed0a234398eb45a378
1
////foo.php
2
<
?hh
// strict
3
class
Foo
{
4
public function
f
(
int
$x
):
void
{}
5
}
6
7
////treq_ext_foo.php
8
<
?hh
// strict
9
trait TReqExtFoo
{
10
require extends
Foo
;
11
}
12
13
////child.php
14
<
?hh
// strict
15
class
Child
extends
Foo
{
16
public function
f
(
string
$x
):
void
{}
17
}
18
19
////treq_ext_child.php
20
<
?hh
// strict
21
trait TReqExtChild
{
22
require extends
Child
;
23
}
24
25
////tboth_traits.php
26
<
?hh
// strict
27
trait TBothTraits
{
28
use
TReqExtChild
;
29
use
TReqExtFoo
;
30
}