add testcase for #16462 (#19692)

This commit is contained in:
flywind 2022-04-08 02:57:50 +08:00 • committed by GitHub
commit 1807de38e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 0 deletions

3
tests/enum/m16462_1.nim Normal file
View file

@ -0,0 +1,3 @@
type
Scancode* {.pure.} = enum
SCANCODE_LEFT = 80

3
tests/enum/m16462_2.nim Normal file
View file

@ -0,0 +1,3 @@
type
Scancode* {.pure.} = enum
SCANCODE_LEFT = 80

5
tests/enum/t16462.nim Normal file
View file

@ -0,0 +1,5 @@
import m16462_1 except Scancode
import m16462_2
# bug #16462
let a = SCANCODE_LEFT