3 * Copyright (c) 2014, Facebook, Inc.
6 * This source code is licensed under the BSD-style license found in the
7 * LICENSE file in the "hack" directory of this source tree. An additional grant
8 * of patent rights can be found in the PATENTS file in the same directory.
12 // This should fail for using a nonexistent class constant.
15 const string X1
= 'field1';
16 const string X2
= 'field2';
24 function test(): myshape
{
25 $x = shape(X
::X1
=> 1, X
::X2
=> true, X
::X3
=> false);
26 $y = shape(X
::X1
=> 1, X
::X2
=> true);
30 function test2(): void
{