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
/
instanceof_this_in_trait.php
blob
61764b682e5b936d7e9748f3698d697f28247fd1
1
<
?hh
// strict
2
3
interface
I
{}
4
5
trait MyTrait
{
6
public function
__construct
() {}
7
8
public function
equals
(
I
$other
):
this
{
9
return
$other
instanceof
$this
;
10
}
11
}