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
Readonly in emitter flag
[hiphop-php.git]
/
hphp
/
test
/
slow
/
readonly
/
locals.php
blob
20b652ed9f382979f5f751cfb2bb0fb7af21f6da
1
<
?hh
//strict
2
3
<<
file
:
__EnableUnstableFeatures
(
'readonly'
)>>
4
5
class
P
{
6
public function
__construct
(
public
int
$i
) { }
7
}
8
9
<<
__EntryPoint
>>
10
function
main
() {
11
$p
=
readonly
new
P
(
1
);
12
$p
->
i
=
10
;
13
}