No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / inherited_constant.php
blob52e222d09f8a939bf6948dc4ff3bcd4689ddf371
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 IFoo {
13 const string DUCK = '123';
16 class Foo implements IFoo {
19 function foo(): string {
20 return Foo::DUCK;