=> supports pragmas & names (+ changed behavior) (#14200)
* => supports pragmas & names (+ changed behavior) (x, y: int) is now parsed as (x: int, y: int) instead of (x: auto, y: int) inside => and ->. * fix pragma check * fixes, use since & LHS of -> supports pragmas
This commit is contained in:
parent
b56432bd8a
commit
3e060cfb0a
6 changed files with 96 additions and 55 deletions
|
|
@ -124,7 +124,7 @@ macro genericParamsImpl(T: typedesc): untyped =
|
|||
result.add ret
|
||||
break
|
||||
else:
|
||||
error "wrong kind: " & $impl.kind
|
||||
error "wrong kind: " & $impl.kind, impl
|
||||
|
||||
since (1, 1):
|
||||
template genericParams*(T: typedesc): untyped =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue