fix sets of scoped imported enums (#13666)

This commit is contained in:
Jasper Jenkins 2020-03-17 02:47:27 -07:00 • committed by GitHub
commit 6a23452bf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 1 deletions

9
tests/cpp/tenum_set.nim Normal file
View 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