Exception: RBS::NonregularTypeAliasError
- Includes:
- DetailedMessageable
- Defined in:
- lib/rbs/errors.rb,
sig/errors.rbs
Instance Attribute Summary collapse
-
#diagnostic ⇒ TypeAliasRegularity::Diagnostic
readonly
Diagnostic reported from
TypeAliasRegularity. -
#location ⇒ Location[untyped, untyped]?
readonly
Location of the definition.
Instance Method Summary collapse
-
#initialize(diagnostic:, location:) ⇒ NonregularTypeAliasError
constructor
A new instance of NonregularTypeAliasError.
Methods included from DetailedMessageable
Constructor Details
#initialize(diagnostic:, location:) ⇒ NonregularTypeAliasError
Returns a new instance of NonregularTypeAliasError.
551 552 553 554 555 556 |
# File 'lib/rbs/errors.rb', line 551 def initialize(diagnostic:, location:) @diagnostic = diagnostic @location = location super "#{Location.to_string location}: Nonregular generic type alias is prohibited: #{diagnostic.type_name}, #{diagnostic.nonregular_type}" end |
Instance Attribute Details
#diagnostic ⇒ TypeAliasRegularity::Diagnostic (readonly)
Diagnostic reported from TypeAliasRegularity.
343 344 345 |
# File 'sig/errors.rbs', line 343 def diagnostic @diagnostic end |
#location ⇒ Location[untyped, untyped]? (readonly)
Location of the definition.
346 347 348 |
# File 'sig/errors.rbs', line 346 def location @location end |