Harmonize the var/let and const handling (#10410)

Fixes #10333
This commit is contained in:
LemonBoy 2019-01-23 11:10:51 +01:00 • committed by Andreas Rumpf
commit 9c0e5c4c07
2 changed files with 25 additions and 4 deletions

View file

@ -149,3 +149,14 @@ static:
static:
doAssert foo().i == 1
# #10333
block:
const
encoding: auto = [
["", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"],
["", "X", "XX", "XXX", "XL", "L", "LX", "LXX", "LXXX", "XC"],
["", "C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCCC", "CM"],
["", "M", "MM", "MMM", "--", "-", "--", "---", "----", "--"],
]
doAssert encoding.len == 4