Advertisement
Guest User

Untitled

a guest
Aug 1st, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 0.42 KB | None | 0 0
  1. test.nim:
  2. #import parsecfg
  3. import asynchttpserver, asyncdispatch
  4. var server = newAsyncHttpServer()
  5. proc cb(req: Request) {.async.} =
  6.   await req.respond(Http200, "Hello World")
  7.  
  8. waitFor server.serve(Port(8080), cb)
  9. ------- parsecfg commented out ---------
  10. $ nim --hints:off c test.nim
  11. ...
  12. $
  13. -------- parsecfg uncommented -------
  14. $ nim --hints:off c test.nim
  15. lib/pure/httpcore.nim(84, 20) Error: undeclared field: 'key'
  16. $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement