---
source: compiler-core/src/parse/tests.rs
expression: "\ntype Either<A, B> {\n    This(A)\n    That(B)\n}\n"
---
----- SOURCE CODE

type Either<A, B> {
    This(A)
    That(B)
}


----- ERROR
error: Syntax error
  ┌─ /src/parse/error.gleam:2:12
  │
2 │ type Either<A, B> {
  │            ^ I was expecting `(` here.

Type parameters use lowercase names and are surrounded by parentheses.

    type Either(a, b) {

See: https://tour.gleam.run/data-types/generic-custom-types/
