class RBS::InvalidVarianceAnnotationError
Attributes
location[R]
param[R]
type_name[R]
Public Class Methods
new(type_name:, param:, location:)
click to toggle source
Calls superclass method
# File rbs-3.2.2/lib/rbs/errors.rb, line 406 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