fix sets of scoped imported enums (#13666)
This commit is contained in:
parent
bec0522fca
commit
6a23452bf4
3 changed files with 14 additions and 1 deletions
9
tests/cpp/tenum_set.nim
Normal file
9
tests/cpp/tenum_set.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
discard """
|
||||
targets: "cpp"
|
||||
output: "{A, B, C}"
|
||||
"""
|
||||
|
||||
type Enum {.importcpp: "namespaced::Enum", header: "enum.hpp".} = enum A, B, C
|
||||
|
||||
var vals = {low(Enum) .. high(Enum)}
|
||||
echo vals
|
||||
Loading…
Add table
Add a link
Reference in a new issue