<?hh //strict
interface IFoo {
public function boo() :string;
}
trait TFoo {
public function boo() {
return 1;
}
}
class Foo implements IFoo {
use TFoo;
}
$f = new Foo();
$f->boo();
<?hh //strict
interface IFoo {
public function boo() :string;
}
trait TFoo {
public function boo() {
return 1;
}
}
class Foo implements IFoo {
use TFoo;
}
$f = new Foo();
$f->boo();
Output for 8.0.13
Parse error: syntax error, unexpected token "interface" in /in/Ap6Ra on line 3
Process exited with code 255.