lib/steep/errors.rb in steep-0.3.0 vs lib/steep/errors.rb in steep-0.4.0

- old
+ new

@@ -473,7 +473,22 @@ def to_s "#{location_to_str}: UnexpectedSplat: type=#{type}" end end + + class IncompatibleTuple < Base + attr_reader :expected_tuple + include ResultPrinter + + def initialize(node:, expected_tuple:, result:) + super(node: node) + @result = result + @expected_tuple = expected_tuple + end + + def to_s + "#{location_to_str}: IncompatibleTuple: expected_tuple=#{expected_tuple}" + end + end end end