• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

forst-lang / forst / 24311749291 / 1
79%
main: 79%

Build:
DEFAULT BRANCH: main
Ran 12 Apr 2026 05:01PM UTC
Files 190
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Apr 2026 04:59PM UTC coverage: 62.492% (-0.01%) from 62.502%
24311749291.1

push

github

web-flow
feat(compiler)!: nominal error types (`error X { … }`) (#70)

* feat(compiler)!: nominal error types (error X { … })

Add user-defined nominal failure types with struct payloads: parse into
TypeDefErrorExpr, register with Error subtyping, unify/lookup and Go + TS
emit, fmt + LSP hover, and integration tests. Adds examples/in/nominal_error.ft
and task example:nominal-error.

docs(rfc): align errors architecture, normative RFC, hub README,
effect examples, ROADMAP experimental status, and testing rules with shipped
vs remaining RFC 02 work.

Example:

```forst
error NotPositive {
	message: String
}

func Test() {
	n := 0
	ensure n is GreaterThan(0) or NotPositive({
		message: "n must be greater than 0",
	})
}
```

* test: expand nominal error coverage

- compiler: assert examples/in/nominal_error.ft emits NotPositive struct, payload field, and error return
- parser: full-file parse of error typedef plus ensure … or nominal payload
- typechecker: CheckTypes on ensure/or arm; lock in IsTypeCompatible for same-shaped distinct nominals
- printer: printType for user nominal ident

16486 of 26381 relevant lines covered (62.49%)

19.96 hits per line

Source Files on job 24311749291.1
  • Tree
  • List 190
  • Changed 21
  • Source Changed 0
  • Coverage Changed 21
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 24311749291
  • 58842e7c on github
  • Prev Job for on main (#24308795533.1)
  • Next Job for on main (#24312809298.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc