Perl5-IDEA icon indicating copy to clipboard operation
Perl5-IDEA copied to clipboard

False positive "Unresolved sub" inspection on boolean subs

Open borisfox73 opened this issue 3 years ago • 1 comments

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

borisfox73 avatar May 05 '22 09:05 borisfox73

Hm. This is strange. Declaration is pretty plain: https://metacpan.org/dist/boolean/source/lib/boolean.pm Will take a look, thank you

hurricup avatar May 05 '22 09:05 hurricup