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
Check for void/noreturn in conditionals
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
trait_priv_extends2.php
blob
281f09b89f65d5bfbe68f14a5514b057101f5be7
1
<
?hh
// strict
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
trait T
{
5
abstract private function
f
():
int
;
6
}
7
8
class
C
{
9
use
T
;
10
11
public function
g
():
void
{
12
$this
->
f
();
13
}
14
15
private function
f
():
string
{
16
return
''
;
17
}
18
}