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, BaseError, StandardError
Inherits: RBS::BaseError
Defined in: lib/rbs/errors.rb

Class Method Summary

Instance Attribute Summary

Constructor Details

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

[ GitHub ]

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

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 470

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

#method_name (readonly)

[ GitHub ]

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

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

#params (readonly)

[ GitHub ]

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

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

#type_name (readonly)

[ GitHub ]

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

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