* fix #18310 == in vm * fixup * fixup
This commit is contained in:
parent
abd21ef213
commit
ad70a65e0e
2 changed files with 17 additions and 5 deletions
|
|
@ -256,6 +256,17 @@ block:
|
|||
doAssert f == @[]
|
||||
|
||||
|
||||
block: # bug #18310
|
||||
macro t() : untyped =
|
||||
let
|
||||
x = nnkTupleConstr.newTree(newLit(1))
|
||||
y = nnkTupleConstr.newTree(newLit(2))
|
||||
doAssert not (x == y) # not using != intentionally
|
||||
doAssert not(cast[int](x) == cast[int](y))
|
||||
doAssert not(system.`==`(x, y))
|
||||
doAssert system.`==`(x, x)
|
||||
t()
|
||||
|
||||
block: # bug #10815
|
||||
type
|
||||
Opcode = enum
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue