Add tests for not virtualized functions
[hiphop-php.git] / hphp / hack / test / typecheck / expression_trees_not_virtualize_functions / pipe_no_dollardollar.php
blob13ba70b2a53696e307fe742bcd5b54e1223db033
1 <?hh
3 <<file:__EnableUnstableFeatures('expression_trees')>>
5 // Note that there is no usage of the $$ here.
6 // The check for assignment in pipe only checks to see whether $$ is in scope,
7 // not whether it is being used
8 // For assignments to occur in expression trees,
9 // a splice will cause an evaluation of an assignment
10 function test(ExprTree<ExampleDsl, ExampleDsl::TAst, ExampleInt> $x): void {
11 1 |> ExampleDsl`${$x}`;