mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user