class RBS::NonregularTypeAliasError - rbs: Ruby Standard Library Documentation

# class RBS::NonregularTypeAliasError

### Attributes

diagnostic[R]
location[R]

### Public Class Methods

new(diagnostic:, location:) click to toggle source
Calls superclass method

    # File rbs-3.8.0/lib/rbs/errors.rb, line 506
    def initialize(diagnostic:, location:)
      @diagnostic = diagnostic
      @location = location

      super "#{Location.to_string location}: Nonregular generic type alias is prohibited: #{diagnostic.type_name}, #{diagnostic.nonregular_type}"
    end