Subject: | even with a null filter F::S mangles line numbers in code with HEREDOCs |
Copied from: https://github.com/Corion/filter-signatures/issues/2
Filter:
------------------------------------------------
package Filter::null;
use Filter::Simple;
FILTER_ONLY
code => sub { },
executable => sub { },
;
1;
------------------------------------------------
Test:
------------------------------------------------
#!perl
use strict;
use warnings;
use Test::More tests => 1;
use Filter::null;
my $decl = <<'XS';
name($args);
XS
is __LINE__, 11, "The filter doesn't ruin line numbers";
------------------------------------------------