Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Feb 11, 2020
1 parent 4afbec1 commit f115452
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion tests/errmsgs/t8434.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ discard """
errormsg: "type mismatch: got <byte, int literal(0)>"
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
Expand Down
4 changes: 1 addition & 3 deletions tests/errmsgs/tgcsafety.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ errormsg: "type mismatch: got <AsyncHttpServer, Port, proc (req: Request): Futur
nimout: '''
type mismatch: got <AsyncHttpServer, Port, proc (req: Request): Future[system.void]{.locks: <unknown>.}>
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: <unknown>.}
Expand Down

0 comments on commit f115452

Please sign in to comment.