New inference: improved error message for unresolved type
[hiphop-php.git] / hphp / hack / test / typecheck / constraint_gen_fail3.php
blob6968f9606948f2381eaa79f2d6128ad4b04fe700
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 A {
13 public function render(): string;
16 class L<T as A> {
17 private ?T $data = null;
19 public function set(T $x): void { $this->data = $x; }
20 public function get(): ?T { return $this->data; }
23 class U<T> extends L<A> {
24 public function get(): ?T { return parent::get(); }