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
/
dynamic_props2.php
blob
441f9f593c2e6f20d883d48a8a92279ed523d3f9
1
<
?hh
// strict
2
3
class
A
{
4
const
c
=
1
;
5
static
$f1
=
"42"
;
6
}
7
8
function
f
() {
9
$a
=
A
::
c
;
// no errors
10
$b
=
A
::
$f1
;
// no errors
11
$n
=
"f"
;
12
$c
=
A
::
$
{
$n
.
"1"
};
// error in strict mode
13
}