Perl5-IDEA
Perl5-IDEA copied to clipboard
False positive "Unresolved sub" inspection on boolean subs
In the following code snippet:
#!/usr/bin/perl
use strict; use warnings FATAL => 'all';
use boolean;
$a = true;
$b = false;
print "a = $a, b = $b\n";
"true" and "false" functions of boolean module erroneously marked as unresolved ("Unable to find sub definition, declaration, constant definition or typeglob aliasing").
Environment: IntelliJ IDEA 2022.1 (Ultimate Edition) Build #IU-221.5080.210, built on April 12, 2022 Runtime version: 11.0.14.1+1-b2043.25 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Perl plugin 2022.1 OS: Ubuntu 22.04 LTS
Hm. This is strange. Declaration is pretty plain: https://metacpan.org/dist/boolean/source/lib/boolean.pm Will take a look, thank you