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
Handle condition types for intersections
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
reactive
/
intersections_rx1.php
blob
b8d095f131d98954e1c8fcf2671dfdadff18c969
1
<
?hh
2
3
interface
IRx
{}
4
class
Foo
{}
5
class
Bar
{
6
<<
__Rx
,
__OnlyRxIfImpl
(
IRx
::
class
)>>
7
public function
test
():
void
{}
8
}
9
10
<<
__Rx
,
__AtMostRxAsArgs
>>
11
function
my_test_function
(<<
__OnlyRxIfImpl
(
IRx
::
class
)>>
Foo
$foo
):
void
{
12
$foo
as
Bar
;
13
$foo
->
test
();
14
}