Move io_tests to folly/io/async/test
[hiphop-php.git] / hphp / hack / test / typecheck / xhp_attr_spread_inconsistent.php
blob64c4eec2c9fb045c9bef8e2498abb993fbdf666c
1 <?hh
3 class :foo {
4 attribute string name;
6 public async function genRender(): Awaitable<mixed> {
7 // Another case of unsoundness: we pretend that `this` means the class
8 // where the spread is written, even though it may be a :subfoo.
9 return <bar {...$this} />;
13 class :subfoo extends :foo {
14 attribute string age;
17 class :bar extends XHPTest {
18 attribute int age;