lib/steep/errors.rb in steep-0.37.0 vs lib/steep/errors.rb in steep-0.38.0

- old
+ new

@@ -193,9 +193,28 @@ def to_s "#{location_to_str}: BlockTypeMismatch: expected=#{expected}, actual=#{actual}" end end + class BlockBodyTypeMismatch < Base + attr_reader :expected + attr_reader :actual + attr_reader :result + + include ResultPrinter + + def initialize(node:, expected:, actual:, result:) + super(node: node) + @expected = expected + @actual = actual + @result = result + end + + def to_s + "#{location_to_str}: BlockBodyTypeMismatch: expected=#{expected}, actual=#{actual}" + end + end + class BreakTypeMismatch < Base attr_reader :expected attr_reader :actual attr_reader :result