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
Fix bug in hack codegen for sets
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
lambda
/
violated_constraints.php
blob
a4d9732cd6ad44d93fc04919dd18d0210873af57
1
<
?hh
2
3
class
A
<
T
as
num
> {}
4
5
function
test
() :
void
{
6
// constraints violated here in two places
7
$f
= (
A
<
string
>
$x
) :
A
<
string
> ==> {
return
$x
;};
8
}