fix: use composed enum keys for driver diagnostics (EnumMap)

This commit is contained in:
2026-10-24 03:48:35 +02:00
parent d2cec370fa
commit 9c1bd2a20e
3 changed files with 79 additions and 18 deletions
+2
View File
@@ -1,5 +1,7 @@
import "@std/meta"
#! keys may be enums or native enum compositions that normalize to an enum, including aliases.
#! shared variant names follow native composition identity; payload-bearing sums are not enum keys.
EnumMap proc($E, $V type) type {
match typeinfo!(E) {
.enum |info|: return struct {