Skip to content

Commit

Permalink
Perform the unimport test on a string literal that doesn't match the …
Browse files Browse the repository at this point in the history
…function's name, so it's less confusing on strict 'subs' failures
  • Loading branch information
leonerd committed Jan 25, 2024
1 parent 6a74537 commit e365299
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/builtin-unimport.t
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ no warnings 'experimental::builtin';
{
package UnimportTest;

sub true() { return "true" };
sub true() { return "yes" };

{
use builtin 'true';
no builtin 'true';

::is(true(), "true", 'no builtin can remove lexical import');
::is(true(), "yes", 'no builtin can remove lexical import');
}

{
Expand Down

0 comments on commit e365299

Please sign in to comment.