-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid internal error with
T<X>
where T
bound consist of intersect…
…ion type
- Loading branch information
1 parent
ea52b59
commit 778b569
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
namespace Bug10509; | ||
|
||
/** @template T */ | ||
interface One | ||
{ | ||
|
||
} | ||
|
||
/** @template T */ | ||
interface Two | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* @template T of One&Two | ||
*/ | ||
class Foo | ||
{ | ||
|
||
/** | ||
* @return T<int> | ||
*/ | ||
public function doFoo() | ||
{ | ||
|
||
} | ||
|
||
} |