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
Add conflicting concrete typeconst check, change class const map to not consider...
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
stricter_consts
/
trait_typeconst_1.bad.php
blob
1871b600244eeafea1977ac59c9dddde38d8340b
1
<
?hh
2
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3
4
// Error: a child attempting to override a parent’s constant with a constant
5
// from a trait will fatal
6
7
class
C
{
8
const
type Ty
=
int
;
9
}
10
11
trait T
{
12
const
type Ty
=
string
;
13
}
14
15
class
D
extends
C
{
16
use
T
;
17
}