Disallow ... without type in function typehints
[hiphop-php.git] / hphp / hack / test / typecheck / deprecated_inst_meth.php
blobfe8f6da01a5a734d9645dddc9426ae0ff90245c4
1 <?hh // strict
3 class X {
4 <<__Deprecated('use bar() instead')>>
5 public function foo(): void {}
8 function f(X $a): (function(X): void) {
9 return inst_meth($a, 'foo');