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.



387
388
389
390
391
# File 'lib/rbs/errors.rb', line 387

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.



385
386
387
# File 'lib/rbs/errors.rb', line 385

def decl
  @decl
end

#nameObject (readonly)

Returns the value of attribute name.



384
385
386
# File 'lib/rbs/errors.rb', line 384

def name
  @name
end