add bit type overloads of $ and repr (#24865)

fixes #24864

(cherry picked from commit 97d819a251)
This commit is contained in:
metagn
2025-04-12 09:37:36 +03:00
committed by narimiran
parent dbed9310ba
commit 7e589bcbe4
3 changed files with 38 additions and 21 deletions

View File

@@ -0,0 +1,5 @@
# issue #24864
type S = distinct uint16
converter d(field: uint8 | uint16): S = discard
discard (repr(0'u16), repr(0'u8))