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
/
abstract_tconst_not_allowed_duplicate_trait.php
blob
7211eaef10b069747484926a3ba87ef7846640a9
1
<
?hh
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
abstract class
A
{
5
abstract const
type T
;
6
}
7
8
trait MyTrait
{
9
public function
foo
(
A
::
T
$_
):
void
{}
10
}
11
12
class
B
{
13
use
MyTrait
;
14
}