# P0036

`String.repeat` was given a negative count. Spans the call.

**Machine-applicable fix:** none.

## Example

This program fails with `P0036`.

```oska
fn main() {
    let line = "ab".repeat(-1)
}
```

## Fixed

The same program, fixed.

```oska
fn main() {
    let line = "ab".repeat(3)
}
```

Listed in the [runtime notes](/runtime.md#p0036). `oskac explain P0036` prints this entry offline.