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
/
new_bad_error_pos.php
blob
cc4f557c5ec052c0debf6b5fe94872ec1d0423a2
1
//// file1.php
2
<
?hh
3
function
test
<
T
as
C
>(
4
T
$c
,
5
A
$a
,
6
):
void
{
7
$b
=
$c
->
b
();
8
$_
=
new
$b
(
$a
);
9
}
10
//// file2.php
11
<
?hh
12
interface
A
{}
13
final class
B
<
Ta
as
A
> {
14
public function
__construct
(
Ta
$a
) {}
15
}
16
interface
C
{
17
abstract const
type Ta
as
A
;
18
public function
b
():
classname
<
B
<
this
::
Ta
>>;
19
}