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
Untyped variadic function types should not be permitted in strict mode
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
suspend_operator_ok15.php
blob
e379157f8f69d12c6023edd945fb9e50abb214ca
1
<
?hh
// strict
2
3
class
A
{
4
public
coroutine
function
f
():
int
{
5
return
1
;
6
}
7
}
8
9
class
B
extends
A
{
10
public
coroutine
function
g
():
int
{
11
// ok - call to coroutine instance method from the base class
12
$a
=
suspend parent
::
f
();
13
return
$a
;
14
}
15
}