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
Ban constructor parameter promotion on traits and interfaces
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
trait_interface_constructor_promotion.php
blob
6f5b5c3ba3516951d5e483053118da8d65e11c25
1
<
?hh
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
trait T
{
4
public function
__construct
(
private
int
$x
) {}
5
}
6
7
interface
I
{
8
public function
__construct
(
private
int
$x
);
9
}