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
Migrate rx/pure tests to strict mode, fix broken tests
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
reactive
/
rx_move4.php
blob
4882b9db53d6214625ba55fb55912f6fa4ae79ed
1
<
?hh
2
3
class
C
{}
4
5
<<
__Rx
>>
6
function
f
():
void
{
7
$a
=
\HH\Rx\
mutable
(
new
C
());
8
// OK
9
$b
=
g
(
\HH\Rx\
move
(
$a
));
10
// ERROR
11
$c
=
g
(
\HH\Rx\
move
(
$a
));
12
}
13
14
<<
__Rx
,
__MutableReturn
>>
15
function
g
(<<
__OwnedMutable
>>
C
$c
):
C
{
16
return
$c
;
17
}