# `type.constraint_repeated`

Constraint is given twice.

Area 2, [Values and types](../topics/values-and-types.md); not declinable; the next step is usually the agent's.

```jadpo
type Nickname = Text {
    max_length: 20
    max_length: 30
}
```

```text
error: `max_length` is given twice
 --> main.jadpo:3:5
  |
2 |     max_length: 20
  |     ---------- first given here
3 |     max_length: 30
  |     ^^^^^^^^^^ given again
  reason: Each setting is given once, so there is never a question of which one counts.
  next: Remove one `max_length` (agent)
  rule: type.constraint_repeated
  help: https://jadpo.dev/docs/errors/type.constraint_repeated

check failed: 1 error, 1 file
```
