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:
parent
7199301a7b
commit
811fd0a6b4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user