forked from hhvm/xhp-lib
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Add a new type for attributes in XHP for float (AKA double). Reviewed By: marcel Test Plan: Added a new test for float attributes.
- Loading branch information
Nora Mullaney
committed
Mar 9, 2010
1 parent
e1d699f
commit 123d916
Showing
4 changed files
with
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--TEST-- | ||
Float attribute parsing | ||
--FILE-- | ||
<?php | ||
class :foo { | ||
attribute | ||
float b; | ||
} | ||
echo "pass"; | ||
--EXPECT-- | ||
pass |
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