lib/rbs/errors.rb in rbs-3.3.2 vs lib/rbs/errors.rb in rbs-3.4.0.pre.1

- old
+ new

@@ -555,6 +555,17 @@ def location @alias_entry.decl.location end end + + class WillSyntaxError < DefinitionError + include DetailedMessageable + + attr_reader :location + + def initialize(message, location:) + super "#{Location.to_string(location)}: #{message}" + @location = location + end + end end