Exception: RBS::GenericParameterMismatchError

Inherits:
LoadingError show all
Defined in:
lib/rbs/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, decl:) ⇒ GenericParameterMismatchError

Returns a new instance of GenericParameterMismatchError.



339
340
341
342
343
# File 'lib/rbs/errors.rb', line 339

def initialize(name:, decl:)
  @name = name
  @decl = decl
  super "#{Location.to_string decl.location}: Generic parameters mismatch: #{name}"
end

Instance Attribute Details

#declObject (readonly)

Returns the value of attribute decl.



337
338
339
# File 'lib/rbs/errors.rb', line 337

def decl
  @decl
end

#nameObject (readonly)

Returns the value of attribute name.



336
337
338
# File 'lib/rbs/errors.rb', line 336

def name
  @name
end