Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix hackfmt for trait conflict resolution
Summary: Trait conflict resolution raised fatal errors, this commit fixes it. Update FFP spec to reflect the different AST nodes for alias and conflict resolution, also fix a typo. Differential Revision: D7568874 fbshipit-source-id: 8be4817860130933f827aac1788077a4d75f60fa
- Loading branch information
Showing
4 changed files
with
31 additions
and
8 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
7 changes: 7 additions & 0 deletions
7
hphp/hack/test/hackfmt/tests/trait_use_conflict_resolution.php
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,7 @@ | ||
<?hh | ||
|
||
class Foo { | ||
use Bar,Baz,Quz{ | ||
Bar::bar insteadof Baz;Baz::baz insteadof Bar,Quz;Quz::quz as quz; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
hphp/hack/test/hackfmt/tests/trait_use_conflict_resolution.php.exp
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,9 @@ | ||
<?hh | ||
|
||
class Foo { | ||
use Bar, Baz, Quz { | ||
Bar::bar insteadof Baz; | ||
Baz::baz insteadof Bar, Quz; | ||
Quz::quz as quz; | ||
} | ||
} |