class RBS::RecursiveAliasDefinitionError
Attributes
type
[R]
ty
Public Class Methods
(type: ty, defs: Array[defn]) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/errors.rb, line 454 def initialize(type:, defs:) @type = type @defs = defs super "#{Location.to_string location}: Recursive aliases in #{type}: #{defs.map(&:name).join(", ")}" end
Calls superclass method
Exception::new
Public Instance Methods
() → Location[untyped, untyped]?
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/errors.rb, line 461 def location first_def = defs.first or raise original = first_def.original or raise original.location end