# 4.4.4-9 Sum 类型

Sum 类型用来表示一个类型集合，其定义如下：

```go
type Sum struct {
	types []Type // types are unique
}
```

Sum 当前用在`Interface`类型的 types 属性中，用于表示泛型的限定类型列表（constraint list）。该类型也是编译器内部定义的辅助类型结构，不是语言层面的类型。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gocompiler.shizhz.me/golang-bian-yi-qi-lei-xing-jian-cha/4.4.49-sum-lei-xing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
