Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
122 additions
and
35 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
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,29 @@ | ||
Test no feature stringification | ||
|
||
__END__ | ||
# NAME simple | ||
# default on | ||
my $x = \1; | ||
my $y = "$x"; | ||
# on in bundles | ||
use v5.10.0; | ||
$y = "$x"; | ||
use v5.32.0; | ||
$y = "$x"; | ||
use feature ":5.32.0"; # feature and use v end up different under the hood. | ||
$y = "$x"; | ||
no feature "stringification"; | ||
$y = "$x"; | ||
EXPECT | ||
OPTIONS fatal | ||
Attempt to stringify reference under no feature stringification at - line 12. | ||
######## | ||
# NAME overloaded | ||
package Foo { | ||
use overload '""' => sub { "ABC" }; | ||
}; | ||
my $x = bless {}, "Foo"; | ||
no feature "stringification"; | ||
print $x, "\n"; | ||
EXPECT | ||
ABC |