diff options
author | flywind <xzsflywind@gmail.com> | 2021-04-05 04:47:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-04 13:47:28 -0700 |
commit | 70a30317f7b0a5711e248e0653b50d1c057bd16b (patch) | |
tree | 80c3b1f52264cabe83c0ba28627a0b8d89f09ad5 /tests/errmsgs | |
parent | f02e159b56aaa63713991c0a7f8e7125e91c832e (diff) | |
download | Nim-70a30317f7b0a5711e248e0653b50d1c057bd16b.tar.gz |
fix #16693: testament spec nimout too lax (#16698)
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
Diffstat (limited to 'tests/errmsgs')
-rw-r--r-- | tests/errmsgs/tgcsafety.nim | 2 | ||||
-rw-r--r-- | tests/errmsgs/twrongcolon.nim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/errmsgs/tgcsafety.nim b/tests/errmsgs/tgcsafety.nim index 77515b74f..09ef92e75 100644 --- a/tests/errmsgs/tgcsafety.nim +++ b/tests/errmsgs/tgcsafety.nim @@ -2,7 +2,7 @@ discard """ cmd: "nim check $file" errormsg: "type mismatch: got <AsyncHttpServer, Port, proc (req: Request): Future[system.void]{.locks: <unknown>.}>" nimout: ''' -type mismatch: got <AsyncHttpServer, Port, proc (req: Request): Future[system.void]{.locks: <unknown>.}> +tgcsafety.nim(30, 18) Error: 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.}; diff --git a/tests/errmsgs/twrongcolon.nim b/tests/errmsgs/twrongcolon.nim index f4f996c3e..20063cbc4 100644 --- a/tests/errmsgs/twrongcolon.nim +++ b/tests/errmsgs/twrongcolon.nim @@ -1,7 +1,7 @@ discard """ errormsg: "in expression ' do:" nimout: ''' -Error: in expression ' do: +twrongcolon.nim(11, 12) Error: in expression ' do: 890': identifier expected, but found '' ''' |