# 0124: Foreign functions can't return more than one value

Compiler found a [foreign function](/language/functions.md#foreign-functions) definition with more than one return type:

```pascal
function foo<cdecl>(): int, int // error: Foreign functions can not return more than one value.
```

#### Possible solutions:

* remove extra return types:

```pascal
function foo<cdecl>(): int
```

* if this is not a foreign function, but a local SCM function that can return multiple types, remove angle brackets:

```pascal
function foo(): int, int
```

Note that is this case you must also provide a [function body](/language/functions.md#function-body).


---

# 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://docs.sannybuilder.com/troubleshooting/errors/0124.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.
