class RBS::InvalidVarianceAnnotationError
Attributes
location
[R]
Location[untyped, untyped]?
param
[R]
AST::TypeParam
Public Class Methods
(type_name: TypeName, param: AST::TypeParam, location: Location[untyped, untyped]?) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/errors.rb, line 439 def initialize(type_name:, param:, location:) @type_name = type_name @param = param @location = location super "#{Location.to_string location}: Type parameter variance error: #{param.name} is #{param.variance} but used as incompatible variance" end
Calls superclass method
Exception::new