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
Error on self::class on non final classes
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
strict_call_tany2.php
blob
c2260c081989412bf68ab0c66e3df127539b4d36
1
//// partial.php
2
<
?hh
// partial
3
/**
4
* Copyright (c) 2014, Facebook, Inc.
5
* All rights reserved.
6
*
7
* This source code is licensed under the MIT license found in the
8
* LICENSE file in the "hack" directory of this source tree.
9
*
10
*
11
*/
12
13
class
C
{
14
public function
any
() {}
15
}
16
17
//// strict.php
18
<
?hh
// strict
19
20
function
f
():
void
{
21
$c
=
new
C
();
22
$c
->
any
()->
foo
();
23
}