Check for void/noreturn in conditionals
[hiphop-php.git] / hphp / hack / test / typecheck / pipe_operator_nested.php
blobfac68233ee75aa9195cc08b74be077b27c4a9b26
1 <?hh
3 function foo(): int {
4 return 1;
7 function concat_it(string $a, int $b): string {
8 return sprintf("%s %d", $a, $b);
11 function say_it(int $a): string {
12 return sprintf("%d", $a);
15 function echo_it(string $a): string {
16 return $a;
19 function piped(): string {
20 return foo() |> concat_it((say_it($$) |> echo_it($$)), $$);