Error on self::class on non final classes
[hiphop-php.git] / hphp / hack / test / typecheck / string_expressions.php
blobe7676b821e4a4202fee964695c6e67657348c4df
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 class Meh {
13 private int $dude = 5;
15 public static function foo(): void {
16 $x = new Meh();
17 print "Hello, {$x->dude}"; // hphp output: Hello, 5
21 Meh::foo();