diff options
author | metagn <metagngn@gmail.com> | 2023-01-18 23:40:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-18 21:40:00 +0100 |
commit | ac982d8a96d4602838d46abc61a8f5385f8c766d (patch) | |
tree | 0e09347d6e705fc5d594503dfba8ad49cbba4996 /tests | |
parent | 7c6dcfd968867ec9b2fee5ca3ef8f251a6faa350 (diff) | |
download | Nim-ac982d8a96d4602838d46abc61a8f5385f8c766d.tar.gz |
close #21257 (#21275)
* close #21257 * fix generics
Diffstat (limited to 'tests')
-rw-r--r-- | tests/errmsgs/t21257.nim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/errmsgs/t21257.nim b/tests/errmsgs/t21257.nim new file mode 100644 index 000000000..eecdb1dfe --- /dev/null +++ b/tests/errmsgs/t21257.nim @@ -0,0 +1,20 @@ +discard """ + action: compile + cmd: "nim check $file" +""" + +type AC_WINCTRL_Fields* = distinct uint8 + +type AC_STATUSA_WSTATE0* {.pure.} = enum + ABOVE = 0x0, + INSIDE = 0x1, + BELOW = 0x2, + +type AC_WINCTRL_WINTSEL0* {.pure.} = enum + ABOVE = 0x0, + INSIDE = 0x1, + BELOW = 0x2, + OUTSIDE = 0x3, + +proc write*(WINTSEL0: AC_WINCTRL_WINTSEL0 = ABOVE) = + discard |