Skip to content

remove enum support, reject with compile error#403

Merged
cs01 merged 1 commit intomainfrom
fix/remove-enum-support
Mar 14, 2026
Merged

remove enum support, reject with compile error#403
cs01 merged 1 commit intomainfrom
fix/remove-enum-support

Conversation

@cs01
Copy link
Owner

@cs01 cs01 commented Mar 14, 2026

Summary

  • Enums now produce a clear compile error suggesting as const objects instead
  • Removes a major source of codegen complexity (string enum params, type mapping, struct layout issues)
  • Converted compiler's own 3 internal enums (SymbolKind, VarKind, LogLevel) to plain const numbers

Test plan

  • Existing enum test fixtures converted to @test-compile-error tests
  • All 692 tests pass
  • Self-hosting Stage 0 + Stage 1 pass (verify:quick)
  • Error message suggests as const alternative with helpful notes

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cs01 cs01 merged commit db9ec2a into main Mar 14, 2026
12 checks passed
@cs01 cs01 deleted the fix/remove-enum-support branch March 14, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant