repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No error on use of `unsafe_cast`
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
capitalization2.php
blob
6e0c15eeefebfce3078eb40aea4a0a66762bc874
1
//// f1.php
2
<
?hh
// partial
3
4
class
CamelCase
{
5
final public function
foo
(
int
$x
):
void
{}
6
}
7
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
();
15
}
16
17
function
ret
():
camelcase
{
18
return new
cAMELcASE
();
19
}
20
21
function
expect_CamelCase
(
CamelCase
$x
):
void
{}
22
23
class
:
xhp
{}