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
/
switch
/
multiple_defaults.php
blob
9eebd8f3e04ffde4548b9dbe29b3eaa98ff40b61
1
<
?hh
// strict
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
function
foo
(
string
$s
) :
int
{
5
switch
(
$s
) {
6
case
'1'
:
7
return
1
;
8
default
:
9
default
:
10
return
0
;
11
break
;
12
}
13
}