Rellum Rellum

S0037: duplicate name in type declaration

Generated from rellum-diagnostics/src/db.rs.

Explanation

Type declarations require unique names for type parameters, record fields, enum variants, and enum variant payload fields. Duplicate names would make construction, field access, and generic substitution ambiguous.

Common causes

Canonical fixes

Before:

type Point = { x: Int, x: Int }

After:

type Point = { x: Int, y: Int }

Before:

type Pair[T, T] = { first: T, second: T }

After:

type Pair[T, U] = { first: T, second: U }

Code example

type Point = { x: Int, x: Int }