Merge pull request #11680 from timotheecour/pr_fix_sigmatch_errmsg

fixes #8305; fixes #7808; fixes #10285; fixes #11061 + other bugs with type mismatch error msgs
This commit is contained in:
Andreas Rumpf 2019-07-17 16:01:44 +02:00 • committed by GitHub
commit e11494f1cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 393 additions and 124 deletions

View file

@ -8,7 +8,7 @@ proc serve(server: AsyncHttpServer; port: Port;
callback: proc (request: Request): Future[void] {.closure, gcsafe.};
address = ""): owned(Future[void])
first type mismatch at position: 3
required type: proc (request: Request): Future[system.void]{.closure, gcsafe.}
required type for callback: proc (request: Request): Future[system.void]{.closure, gcsafe.}
but expression 'cb' is of type: proc (req: Request): Future[system.void]{.locks: <unknown>.}
This expression is not GC-safe. Annotate the proc with {.gcsafe.} to get extended error information.