No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / capitalization2.php
blob6e0c15eeefebfce3078eb40aea4a0a66762bc874
1 //// f1.php
2 <?hh // partial
4 class CamelCase {
5 final public function foo(int $x): void {}
8 //// f2.php
9 <?hh // partial
10 function foo(cAmelCase $arg): :xhp {
11 expect_CamelCase($arg);
12 $v = ret();
13 expect_CamelCase($v);
14 return new :xhp();
17 function ret(): camelcase {
18 return new cAMELcASE();
21 function expect_CamelCase(CamelCase $x):void {}
23 class :xhp {}