1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/test/autoloading_fixtures/throws.rb
Andrew White 811fd0a6b4 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.
2016-04-03 23:47:05 +01:00

4 lines
81 B
Ruby

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