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
Disallow ... without type in function typehints
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
delayed_subst3.php
blob
f8d98fcbf65c4ebc02511cee04ecdce25cdecc9f
1
<
?hh
// strict
2
3
abstract class
Base
<
T
> {
4
public function
test
(
T
$data
):
void
{}
5
}
6
7
trait MyTrait
<
T
> {
8
require extends
Base
<
T
>;
9
}
10
11
final class
Child
<
T
>
extends
Base
<
T
> {
12
use
MyTrait
<
T
>;
13
}