type with same name in different scope now works (#17710)
* type with same name in different scope now works * fix tests/enum/tenum.nim which was wrong because it was affected by this bug
This commit is contained in:
parent
fe77c3c72f
commit
840e13deb7
4 changed files with 133 additions and 9 deletions
|
|
@ -6,7 +6,7 @@ ABCDC
|
|||
foo
|
||||
first0second32third64
|
||||
my value A1my value Bconc2valueCabc4abc
|
||||
my value A0my value Bconc1valueCabc3valueC
|
||||
my value A0my value Bconc1valueCabc3abc
|
||||
'''
|
||||
"""
|
||||
|
||||
|
|
@ -124,7 +124,8 @@ block tnamedfields:
|
|||
# trick the optimizer with a variable:
|
||||
var x = valueD
|
||||
echo valueA, ord(valueA), valueB, ord(valueB), valueC, valueD, ord(valueD), x
|
||||
|
||||
doAssert $x == $valueD, $x
|
||||
doAssert $x == "abc", $x
|
||||
|
||||
|
||||
block toptions:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue