From f115452ca85adaea7efe77a1e1ec994f61bcefe6 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Mon, 10 Feb 2020 22:40:58 -0800 Subject: [PATCH] fix tests --- tests/errmsgs/t8434.nim | 4 +++- tests/errmsgs/tgcsafety.nim | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/errmsgs/t8434.nim b/tests/errmsgs/t8434.nim index ada38e9c017cd..2c2df6e54e937 100644 --- a/tests/errmsgs/t8434.nim +++ b/tests/errmsgs/t8434.nim @@ -2,7 +2,9 @@ discard """ errormsg: "type mismatch: got " nimout: '''but expected one of: proc fun0[T1: int | float | - object | array | seq](a1: T1; a2: int) + object | + array | + seq](a1: T1; a2: int) first type mismatch at position: 1 required type for a1: T1: int or float or object or array or seq[T] but expression 'byte(1)' is of type: byte diff --git a/tests/errmsgs/tgcsafety.nim b/tests/errmsgs/tgcsafety.nim index e6a62204ec1ec..da8e4927b61f2 100644 --- a/tests/errmsgs/tgcsafety.nim +++ b/tests/errmsgs/tgcsafety.nim @@ -4,9 +4,7 @@ errormsg: "type mismatch: got .}> but expected one of: -proc serve(server: AsyncHttpServer; port: Port; - callback: proc (request: Request): Future[void] {.closure, gcsafe.}; - address = ""): owned(Future[void]) +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 for callback: proc (request: Request): Future[system.void]{.closure, gcsafe.} but expression 'cb' is of type: proc (req: Request): Future[system.void]{.locks: .}