# `type.not_record`

Braces build a type that has no fields.

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

```jadpo
type ProductName = Text {
    max_length: 120
}

function blank() -> ProductName {
    return ProductName {}
}
```

```text
error: `ProductName` isn't built with `{ ... }`
 --> main.jadpo:6:12
  |
6 |     return ProductName {}
  |            ^^^^^^^^^^^^^^ has no fields
  reason: Braces build objects and variants with fields; `ProductName`, built on `Text`, takes one value in brackets.
  next: Write `ProductName(...)` with one value (agent)
  rule: type.not_record
  help: https://jadpo.dev/docs/errors/type.not_record

check failed: 1 error, 1 file
```
