Skip to content

Commit

Permalink
add testcase for #16462 (#19692)
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored Apr 7, 2022
1 parent c8aeea9 commit 1807de3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/enum/m16462_1.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type
Scancode* {.pure.} = enum
SCANCODE_LEFT = 80
3 changes: 3 additions & 0 deletions tests/enum/m16462_2.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type
Scancode* {.pure.} = enum
SCANCODE_LEFT = 80
5 changes: 5 additions & 0 deletions tests/enum/t16462.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import m16462_1 except Scancode
import m16462_2

# bug #16462
let a = SCANCODE_LEFT

0 comments on commit 1807de3

Please sign in to comment.