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:
Andreas Rumpf 2021-12-09 13:56:51 +01:00 • committed by GitHub
commit 502ac4ed5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 2 deletions

View file

@ -0,0 +1,3 @@
converter toBool(x: uint32): bool = x != 0
# Note: This convertes is not exported!

View file

@ -0,0 +1,10 @@
discard """
output: '''5'''
joinable: false
"""
import mdontleak
# bug #19213
let a = 5'u32
echo a