parent
c1664f93b0
commit
338602a402
2 changed files with 12 additions and 1 deletions
|
|
@ -1056,7 +1056,7 @@ proc liftParamType(c: PContext, procKind: TSymKind, genericParams: PNode,
|
|||
# disable the bindOnce behavior for the type class
|
||||
result = recurse(paramType.base, true)
|
||||
|
||||
of tyAlias, tyOwned:
|
||||
of tyAlias, tyOwned, tySink:
|
||||
result = recurse(paramType.base)
|
||||
|
||||
of tySequence, tySet, tyArray, tyOpenArray,
|
||||
|
|
|
|||
|
|
@ -172,3 +172,14 @@ when true: # D20200607T202043
|
|||
main2()
|
||||
|
||||
|
||||
|
||||
#------------------------------------------------------------
|
||||
# Issue #15825
|
||||
|
||||
type
|
||||
Union = string | int | char
|
||||
|
||||
proc run(a: sink Union) =
|
||||
discard
|
||||
|
||||
run("123")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue