diff options
author | flywind <xzsflywind@gmail.com> | 2022-04-08 02:57:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-07 20:57:50 +0200 |
commit | 1807de38e52f45c2fb88dac9b99b47729b12ebae (patch) | |
tree | 61f879fed7fa437616a1419552b7c61a3a3ae079 | |
parent | c8aeea9d6205198306c3cd802136915f909ba5dc (diff) | |
download | Nim-1807de38e52f45c2fb88dac9b99b47729b12ebae.tar.gz |
add testcase for #16462 (#19692)
-rw-r--r-- | tests/enum/m16462_1.nim | 3 | ||||
-rw-r--r-- | tests/enum/m16462_2.nim | 3 | ||||
-rw-r--r-- | tests/enum/t16462.nim | 5 |
3 files changed, 11 insertions, 0 deletions
diff --git a/tests/enum/m16462_1.nim b/tests/enum/m16462_1.nim new file mode 100644 index 000000000..631c63256 --- /dev/null +++ b/tests/enum/m16462_1.nim @@ -0,0 +1,3 @@ +type + Scancode* {.pure.} = enum + SCANCODE_LEFT = 80 \ No newline at end of file diff --git a/tests/enum/m16462_2.nim b/tests/enum/m16462_2.nim new file mode 100644 index 000000000..631c63256 --- /dev/null +++ b/tests/enum/m16462_2.nim @@ -0,0 +1,3 @@ +type + Scancode* {.pure.} = enum + SCANCODE_LEFT = 80 \ No newline at end of file diff --git a/tests/enum/t16462.nim b/tests/enum/t16462.nim new file mode 100644 index 000000000..9f38286bb --- /dev/null +++ b/tests/enum/t16462.nim @@ -0,0 +1,5 @@ +import m16462_1 except Scancode +import m16462_2 + +# bug #16462 +let a = SCANCODE_LEFT \ No newline at end of file |