class RBS::NonregularTypeAliasError

def initialize(diagnostic:, location:)

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