Skip to content

Commit f115452

Browse files
committed
fix tests
1 parent 4afbec1 commit f115452

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/errmsgs/t8434.nim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ discard """
22
errormsg: "type mismatch: got <byte, int literal(0)>"
33
nimout: '''but expected one of:
44
proc fun0[T1: int | float |
5-
object | array | seq](a1: T1; a2: int)
5+
object |
6+
array |
7+
seq](a1: T1; a2: int)
68
first type mismatch at position: 1
79
required type for a1: T1: int or float or object or array or seq[T]
810
but expression 'byte(1)' is of type: byte

tests/errmsgs/tgcsafety.nim

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ errormsg: "type mismatch: got <AsyncHttpServer, Port, proc (req: Request): Futur
44
nimout: '''
55
type mismatch: got <AsyncHttpServer, Port, proc (req: Request): Future[system.void]{.locks: <unknown>.}>
66
but expected one of:
7-
proc serve(server: AsyncHttpServer; port: Port;
8-
callback: proc (request: Request): Future[void] {.closure, gcsafe.};
9-
address = ""): owned(Future[void])
7+
proc serve(server: AsyncHttpServer; port: Port; callback: proc (request: Request): Future[void] {.closure, gcsafe.}; address = ""): owned(Future[void])
108
first type mismatch at position: 3
119
required type for callback: proc (request: Request): Future[system.void]{.closure, gcsafe.}
1210
but expression 'cb' is of type: proc (req: Request): Future[system.void]{.locks: <unknown>.}

0 commit comments

Comments
 (0)