Exception: RBS::TypeParamDefaultReferenceError
- Inherits:
-
DefinitionError
- Object
- StandardError
- BaseError
- DefinitionError
- RBS::TypeParamDefaultReferenceError
- Includes:
- DetailedMessageable
- Defined in:
- lib/rbs/errors.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#type_param ⇒ Object
readonly
Returns the value of attribute type_param.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type_param, location:) ⇒ TypeParamDefaultReferenceError
constructor
A new instance of TypeParamDefaultReferenceError.
Methods included from DetailedMessageable
Constructor Details
#initialize(type_param, location:) ⇒ TypeParamDefaultReferenceError
Returns a new instance of TypeParamDefaultReferenceError.
586 587 588 589 590 |
# File 'lib/rbs/errors.rb', line 586 def initialize(type_param, location:) super "#{Location.to_string(location)}: the default of #{type_param.name} cannot include optional type parameter" @location = location @type_param = type_param end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
584 585 586 |
# File 'lib/rbs/errors.rb', line 584 def location @location end |
#type_param ⇒ Object (readonly)
Returns the value of attribute type_param.
583 584 585 |
# File 'lib/rbs/errors.rb', line 583 def type_param @type_param end |