forked from facebook/hhvm
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new TestTraits to TestCodeRun and fix hphpc accordingly
Summary: I've recently learned a few more nuances about traits. I added some new tests to TestCodeRun, and fixed the following cases: 1. abstract trait methods may be provided by a base class of the class using the trait 2. abstract trait methods may be provided by other traits used in the same class 3. trait methods and static properties can be accessed via trait_name::blah. Item 3 abore required enabling code generation for trait classes. Test Plan: make fast_tests make slow_tests built www and checked output CPP code against previous Reviewers: mwilliams, myang, qigao Reviewed By: mwilliams CC: andrewparoski, ps, mwilliams Differential Revision: 350654 Task ID: 758990
- Loading branch information
Showing
8 changed files
with
309 additions
and
37 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
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
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
Oops, something went wrong.