{"record":{"id":"8c79a7e6081febf4","repo":"puppetlabs/puppet","slug":"typeset-name-references-a-typeset-using-alia-8c79a7","errorCode":null,"errorMessage":"TypeSet '#{@name}' references a TypeSet using alias '#{ref_alias}'. The alias collides with the name of a declared type","messagePattern":"TypeSet '#(.+?)' references a TypeSet using alias '#(.+?)'\\. The alias collides with the name of a declared type","errorType":"exception","errorClass":"ArgumentError","httpStatus":null,"severity":"error","filePath":"lib/puppet/pops/types/p_type_set_type.rb","lineNumber":160,"sourceCode":"        ref_na = ref.name_authority || @name_authority\n        na_roots = root_map[ref_na]\n\n        ranges = na_roots[ref_name]\n        if ranges.nil?\n          na_roots[ref_name] = [ref.version_range]\n        else\n          unless ranges.all? { |range| (range & ref.version_range).nil? }\n            raise ArgumentError, \"TypeSet '#{@name}' references TypeSet '#{ref_na}/#{ref_name}' more than once using overlapping version ranges\"\n          end\n\n          ranges << ref.version_range\n        end\n\n        if ref_map.has_key?(ref_alias)\n          raise ArgumentError, \"TypeSet '#{@name}' references a TypeSet using alias '#{ref_alias}' more than once\"\n        end\n        if @types.has_key?(ref_alias)\n          raise ArgumentError, \"TypeSet '#{@name}' references a TypeSet using alias '#{ref_alias}'. The alias collides with the name of a declared type\"\n        end\n\n        ref_map[ref_alias] = ref\n\n        @dc_to_cc_map[ref_alias.downcase] = ref_alias\n        ref_map[ref_alias] = ref\n      end\n      @references = ref_map.freeze\n    end\n    @dc_to_cc_map.freeze\n    init_annotatable(init_hash)\n  end\n\n  # Produce a hash suitable for the initializer\n  # @return [Hash{String => Object}] the initialization hash\n  #\n  # @api private\n  def _pcore_init_hash","sourceCodeStart":142,"sourceCodeEnd":178,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/pops/types/p_type_set_type.rb#L142-L178","documentation":"Error \"TypeSet '#{@name}' references a TypeSet using alias '#{ref_alias}'. The alias collides with the name of a declared type\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/pops/types/p_type_set_type.rb:160 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e227c27540975c25aa22d533a52424a9d2fc886a","analyzedAt":"2026-08-21T20:49:46.650Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}