Error on self::class on non final classes
[hiphop-php.git] / hphp / hack / test / typecheck / tdef_tvar.php
blob9abb5c6ab97a19107d3c6ce91780b33c48d84b55
1 <?hh // partial
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 type TDef<T> = T;
14 class A<T> {
15 public function __construct(TDef<T> $x) {
19 function test(): void {
20 $x = new A(0);