Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.brim-lang.com/llms.txt

Use this file to discover all available pages before exploring further.

What this means

type inference would construct an infinite type

Metadata

  • Code: E3002
  • Default level: Error
  • Phase: Type Check
  • Canonical docs URL: https://docs.brim-lang.com/diagnostics/E3002
  • Tags: types, inference

How to fix

  • introduce explicit recursion wrapper
  • annotate types

Typical output

E3002: occurs check failure
note: type inference would construct an infinite type