This commit is contained in:
flywind 2021-03-26 12:20:58 +08:00 • committed by GitHub
commit 42e895feb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -255,6 +255,31 @@ block:
doAssert e == @[]
doAssert f == @[]
block: # bug #10815
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