Prevent void context warnings

The constant reference A::B used to trigger autoloading causes a warning
to be logged about the possible use of :: in a void context so assign it
to the _ variable to prevent the warnings from being triggered.
This commit is contained in:
Andrew White 2016-04-03 23:35:15 +01:00
parent 7199301a7b
commit 811fd0a6b4
2 changed files with 2 additions and 2 deletions

@ -1,4 +1,4 @@
RaisesArbitraryException = 1
A::B # Autoloading recursion, also expected to be watched and discarded.
_ = A::B # Autoloading recursion, also expected to be watched and discarded.
raise Exception, 'arbitray exception message'

@ -1,4 +1,4 @@
Throws = 1
A::B # Autoloading recursion, expected to be discarded.
_ = A::B # Autoloading recursion, expected to be discarded.
throw :t