writeonce/compiler/test
shoney.arickathil 023233895c test(compiler): unit helpers run inference; retarget borrow-escape fixture
Wire Gcinfer.infer into runner.ml's owner_str/emit_str so the unit tests
classify GC-ness identically to the driver (prerequisite for removing @gc: its
tests read the golden .wo through the library).

That exposed owner-err/borrow-escape.wo, which tested WO-E304 on *class*
escapes — now legally demand-promoted. Retargeted it to CONTAINER (`multi Text`)
escapes, which are owned and never promoted, so it still exercises the three
WO-E304 shapes (stored-in-field, returned, moved-to-take). Assertion positions
+ golden re-blessed.

Verified: woc-test 566/0, test_diag 14/0, oop-e2e 79/0.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-18 19:10:39 +02:00
..
fixtures/driver feat(compiler): iteration 5 Tasks 1-4 — modules, language surface, switch, typedef records + enum variants 2026-08-12 14:40:07 +02:00
golden test(compiler): unit helpers run inference; retarget borrow-escape fixture 2026-08-18 19:10:39 +02:00
dune feat(compiler): MVS ownership pass + woc driver; drop Money/SKU/Float, reject abstract 2026-08-10 21:24:50 +02:00
runner.ml test(compiler): unit helpers run inference; retarget borrow-escape fixture 2026-08-18 19:10:39 +02:00
test_diag.ml feat(compiler): Tasks 1-4 — scaffold, diagnostics, lexer, declaration parser 2026-08-10 09:00:08 +02:00