Add tests for not virtualized functions
[hiphop-php.git] / hphp / hack / test / typecheck / expression_trees_not_virtualize_functions / spliceable_interface.php
blobc9ace3c6ec2e963ef1c6b8b9297a2fb59ea7e08c
1 <?hh
3 <<file:__EnableUnstableFeatures('expression_trees')>>
5 class MySpliceableClass implements Spliceable<ExampleDsl, ExampleDsl::TAst, MySpliceableClass> {
6 public function visit(Code $v): ExampleDsl::TAst {
7 throw new Exception();
11 function test(): void {
12 $x = new MySpliceableClass();
13 ExampleDsl`${$x}`;