summaryrefslogtreecommitdiff
path: root/docs/type_system/overload.md
blob: dff232731eb448281088a3e9ada2fae074e9fa85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Overload

---

List of complete functions, selected by signature

```text
Overload[FN; ...]
```

## Example

```text
add : Overload[Fn[.native; I64; Tuple[I64.x; I64.y]; ...]; Fn[.native; F64; Tuple[F64.x; F64.y]; ...]; ...]

`log add `sync (1; 2) // Valid calls first
`log add `sync (1.1; 2.2) // Valid calls second
`log add `sync (1; 2.2) // Invalid no signature match
```