You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to deprecate some procs to use foo[T](arg) instead of foo(arg, T) syntax.
However deprecating foo(arg, T) gives deprecation warning even for foo[T](arg) syntax:
procfoo(size: int, T: typedesc): seq[T] {.deprecated.}=result=newSeq[T](size)
procfoo[T](size: int): seq[T]=result=newSeq[T](size)
let bar =foo[int](10) # Warning foo is deprecatedecho bar