1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Suppress uninitialized instance variable warnings

This commit is contained in:
Nobuyoshi Nakada 2019-07-04 18:12:08 +09:00
parent f19e048d24
commit 0c3e6e86bd
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -697,6 +697,7 @@ EOS
erb = ERB.allocate
erb.instance_variable_set(:@src, "")
erb.instance_variable_set(:@lineno, 1)
erb.instance_variable_set(:@_init, true)
erb = Marshal.load(Marshal.dump(erb))
assert_raise(ArgumentError) {erb.result}
end