123456789_123456789_123456789_123456789_123456789_

Exception: RBS::CyclicTypeParameterBound

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, BaseError, StandardError
Instance Chain:
self, DetailedMessageable, BaseError, StandardError
Inherits: RBS::BaseError
Defined in: lib/rbs/errors.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(type_name:, method_name:, params:, location:) ⇒ CyclicTypeParameterBound

[ GitHub ]

  
# File 'lib/rbs/errors.rb', line 511

def initialize(type_name:, method_name:, params:, location:)
  @type_name = type_name
  @method_name = method_name
  @params = params
  @location = location

  super "#{Location.to_string(location)}: Cyclic type parameter bound is prohibited"
end

Instance Attribute Details

#location (readonly)

[ GitHub ]

  
# File 'lib/rbs/errors.rb', line 509

attr_reader :params, :type_name, :method_name, :location

#method_name (readonly)

[ GitHub ]

  
# File 'lib/rbs/errors.rb', line 509

attr_reader :params, :type_name, :method_name, :location

#params (readonly)

[ GitHub ]

  
# File 'lib/rbs/errors.rb', line 509

attr_reader :params, :type_name, :method_name, :location

#type_name (readonly)

[ GitHub ]

  
# File 'lib/rbs/errors.rb', line 509

attr_reader :params, :type_name, :method_name, :location