lib/parser/ruby26.rb in parser-2.6.4.1 vs lib/parser/ruby26.rb in parser-2.6.5.0
- old
+ new
@@ -1,9 +1,9 @@
# -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
#
# DO NOT MODIFY!!!!
-# This file is automatically generated by Racc 1.4.16.pre.1
+# This file is automatically generated by Racc 1.4.15
# from Racc grammer file "".
#
require 'racc/parser.rb'
@@ -3389,10 +3389,10 @@
def _reduce_10(val, _values, result)
rescue_bodies = val[1]
else_t, else_ = val[2]
ensure_t, ensure_ = val[3]
- if rescue_bodies.empty? && !else_.nil?
+ if rescue_bodies.empty? && !else_t.nil?
diagnostic :error, :useless_else, nil, else_t
end
result = @builder.begin_body(val[0],
rescue_bodies,