lib/steep/errors.rb in steep-0.8.1 vs lib/steep/errors.rb in steep-0.8.2

- old
+ new

@@ -467,13 +467,18 @@ "#{location_to_str}: IncompatibleTypeCase: var_name=#{var_name}, #{relation}" end end class ElseOnExhaustiveCase < Base + attr_reader :type + def initialize(node:, type:) - def to_s - "#{location_to_str}: ElseOnExhaustiveCase: type=#{type}" - end + super(node: node) + @type = type + end + + def to_s + "#{location_to_str}: ElseOnExhaustiveCase: type=#{type}" end end class UnexpectedSplat < Base attr_reader :type