.noalias annotation; frontend support (#15419)

* .noalias annotation; frontend support

* added .noalias support to Nim; implements https://github.com/nim-lang/RFCs/issues/204
This commit is contained in:
Andreas Rumpf 2020-09-28 13:51:39 +02:00 • committed by GitHub
commit 50b6f6996a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 53 additions and 12 deletions

View file

@ -386,7 +386,7 @@ func `[]`*(pattern: Captures, name: string): string =
template toTableImpl() {.dirty.} =
for key in RegexMatch(pattern).pattern.captureNameId.keys:
if key in pattern:
result[key] = pattern[key]
result[key] = pattern[key]
func toTable*(pattern: Captures): Table[string, string] =
result = initTable[string, string]()