Support is and as
[hiphop-php.git] / hphp / hack / test / decl / rewritten_tparams.php
blobb8934d11352e43a457ecc923222721441213ed9f
1 <?hh
3 final class P {
4 const ctx C = [];
7 function f(
8 (function ()[_]: void) $f,
9 P $v
10 )[ctx $f, $v::C]: void {
11 print "hi";
14 function g(P $v)[$v::C]: int {
15 return $v;
18 function h(
19 ?(function ()[_]: void) $f,
20 ?P $v
21 )[ctx $f, $v::C]: void {
22 print "hi";