=> 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:
hlaaftana 2020-05-03 11:22:49 +03:00 • committed by GitHub
commit 3e060cfb0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 96 additions and 55 deletions

View file

@ -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 =