In Files

  • rbs-2.1.0/lib/rbs/errors.rb

Methods

Class/Module Index [+]

Quicksearch

RBS::InvalidVarianceAnnotationError

Attributes

location[R]
param[R]
type_name[R]

Public Class Methods

new(type_name:, param:, location:) click to toggle source
 
               # File rbs-2.1.0/lib/rbs/errors.rb, line 354
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