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
No error on use of `unsafe_cast`
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
trait_diamond_1b.php
blob
079f4478e1d86953a7de4c32fede22f923c033ee
1
<
?hh
2
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3
4
// Error: __EnableMethodTraitDiamond is an experimental feature
5
6
trait MyTrait1
{
7
public function
testFun
():
void
{}
8
}
9
trait MyTrait2
{
10
use
MyTrait1
;
11
}
12
13
<<
__EnableMethodTraitDiamond
>>
14
class
MyClass
{
15
use
MyTrait1
;
16
use
MyTrait2
;
17
}