Arquivos
hhvm/hphp/test/quick/hh_extends.php
T
Alok Menghrajani db9577b140 Rename strict with Hack
Strict mode was the old name. Let's avoid any confusion in the future and rename things.
2013-05-15 13:05:03 -07:00

22 linhas
317 B
PHP

<?hh
echo "1..2\n";
interface Bonk<T> {
}
class Foo<X> {
function beep() { echo "ok 1\n"; }
}
class Bar<T> extends Foo<Bar<Foo<T>>> implements Bonk<T> {
}
class :bork {
attribute
Bar<String> foo;
}
function nest(Foo<B<C<D<E<F<G<H<I<J<B>,C>>,D>>>,E>>>> $bonk) {
echo "ok 2\n";
}
Bar::beep();
nest(new Foo());