New inference: improved error message for unresolved type
[hiphop-php.git] / hphp / hack / test / typecheck / pipe_operator.php
blobeba575d4c95cad716b0bbcac26d63fdfbcb9fc0d
1 <?hh // partial
3 function foo(): int {
4 return 1;
7 function bar(int $a): int {
8 return $a + 1;
11 function piped(): int {
12 return foo() |> bar($$);