fixes a converter handling regression that caused private converters to leak into client modules; fixes #19213; [backport:1.6] (#19229)
This commit is contained in:
parent
0992854941
commit
502ac4ed5e
3 changed files with 17 additions and 2 deletions
3
tests/converter/mdontleak.nim
Normal file
3
tests/converter/mdontleak.nim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
converter toBool(x: uint32): bool = x != 0
|
||||
# Note: This convertes is not exported!
|
||||
10
tests/converter/tdontleak.nim
Normal file
10
tests/converter/tdontleak.nim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
discard """
|
||||
output: '''5'''
|
||||
joinable: false
|
||||
"""
|
||||
|
||||
import mdontleak
|
||||
# bug #19213
|
||||
|
||||
let a = 5'u32
|
||||
echo a
|
||||
Loading…
Add table
Add a link
Reference in a new issue