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-1.4.0/lib/rbs/errors.rb, line 327 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