mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-31 02:43:41 +00:00
add bit type overloads of $ and repr (#24865)
fixes #24864
(cherry picked from commit 97d819a251)
This commit is contained in:
5
tests/system/treprconverter.nim
Normal file
5
tests/system/treprconverter.nim
Normal 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))
|
||||
Reference in New Issue
Block a user