lib/rbs/parser.y in rbs-0.14.0 vs lib/rbs/parser.y in rbs-0.15.0

- old
+ new

@@ -473,10 +473,12 @@ result = val[2].unshift(val[0]) } method_type: start_merged_scope type_params params_opt block_opt kARROW simple_type { + reset_variable_scope + location = (val[1] || val[2] || val[3] || val[4]).location + val[5].location type_params = val[1]&.value || [] params = val[2]&.value || empty_params_result @@ -873,10 +875,10 @@ rest_positionals: nil, trailing_positionals: [], required_keywords: {}, optional_keywords: {}, rest_keywords: nil, - return_type: val[2] + return_type: val[1] ) result = LocatedValue.new(value: type, location: location) }