Add tests for not virtualized functions
[hiphop-php.git] / hphp / hack / test / typecheck / expression_trees_not_virtualize_functions / splice_variable.php
blob2f07f57c50e71c071dfa10a59e3c19686b3a47b2
1 <?hh
3 <<file:__EnableUnstableFeatures('expression_trees')>>
5 function lift<T>(T $_): ExprTree<ExampleDsl, ExampleDsl::TAst, T> {
6 throw new Exception();
9 function test(): void {
10 $x = 1;
12 // Expression Trees do not inherit local variables from the outer scope
13 // But splices do
14 $_ = ExampleDsl`${lift($x)}`;