Migrate rx/pure tests to strict mode, fix broken tests
[hiphop-php.git] / hphp / hack / test / typecheck / reactive / rx_move4.php
blob4882b9db53d6214625ba55fb55912f6fa4ae79ed
1 <?hh
3 class C {}
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));
14 <<__Rx, __MutableReturn>>
15 function g(<<__OwnedMutable>> C $c): C {
16 return $c;