You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A default import of use Test2::V0 will import a bunch of symbols, including a warnings function.
This gets in the way of using the warnings pragma module as a class, e.g.
use warnings;
use Test2::V0;
BEGIN { warnings->import( .... ) }
because it complains:
Not enough arguments for Test2::Tools::Warnings::warnings at ...
Simple enough solutions to this are use Test2::V0 qw( :DEFAULT !warnings ); or warnings::->import .... but either is slightly annoying to remember to do.
The text was updated successfully, but these errors were encountered:
A default import of
use Test2::V0
will import a bunch of symbols, including awarnings
function.This gets in the way of using the
warnings
pragma module as a class, e.g.because it complains:
Simple enough solutions to this are
use Test2::V0 qw( :DEFAULT !warnings );
orwarnings::->import ....
but either is slightly annoying to remember to do.The text was updated successfully, but these errors were encountered: