Disallow ... without type in function typehints
[hiphop-php.git] / hphp / hack / test / typecheck / printf4.php
blob2e1ddeeab65898ec00157cfb1864984e7ca1e7bd
1 <?hh // strict
2 /**
3 * Copyright (c) 2014, Facebook, Inc.
4 * All rights reserved.
6 * This source code is licensed under the MIT license found in the
7 * LICENSE file in the "hack" directory of this source tree.
12 interface FormatString<T> { }
14 interface Dummy {
15 public function format_s(string $s) : string;
18 function f(FormatString<Dummy> $x, mixed...$args) : void {
21 function _(string $x) : void {
22 f('', $x);