Disallow ... without type in function typehints
[hiphop-php.git] / hphp / hack / test / typecheck / test_lambda2.php
blobf913342c559ae6339c604b088cd0baaaea465b55
1 <?hh //strict
3 function normal(string $s): int {
4 return 1;
7 <<__Rx>>
8 function rx(): void {
9 $l = <<__NonRx>>() ==> {
10 normal("text");
12 // Not OK - lambda is not reactive
13 $l();