class RBS::NonregularTypeAliasError
Attributes
diagnostic
[R]
TypeAliasRegularity::Diagnostic
Diagnostic reported from TypeAliasRegularity.
location
[R]
Location[untyped, untyped]?
Location of the definition.
Public Class Methods
(diagnostic: TypeAliasRegularity::Diagnostic, location: Location[untyped, untyped]?) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/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
Calls superclass method
Exception::new