Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout committed Mar 26, 2021
1 parent b816979 commit 6f115ad
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/vm/tvmmisc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,31 @@ block:
doAssert e == @[]
doAssert f == @[]


block:
type
Opcode = enum
iChar, iSet

Inst = object
case code: Opcode
of iChar:
c: char
of iSet:
cs: set[char]

Patt = seq[Inst]


proc `$`(p: Patt): string =
discard

proc P(): Patt =
result.add Inst(code: iSet)

const a = P()
doAssert $a == ""

import tables

block: # bug #8007
Expand Down

0 comments on commit 6f115ad

Please sign in to comment.