In Files

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

Parent

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