You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hint: used config file '/home/rominf/dev/nim/config/nim.cfg' [Conf]
Hint: used config file '/home/rominf/dev/nim/config/config.nims' [Conf]
................................................
/tmp/test_asynchttpclient_downloadfile_bug.nim(4, 19) template/generic instantiation of `async` from here
/tmp/test_asynchttpclient_downloadfile_bug.nim(6, 15) template/generic instantiation of `downloadFile` from here
/home/rominf/dev/nim/lib/pure/httpclient.nim(1250, 28) template/generic instantiation of `downloadFileEx` from here
/home/rominf/dev/nim/lib/pure/httpclient.nim(1226, 3) Error: invalid type: 'void' for var
$ nim -v
Nim Compiler Version 1.5.1 [Linux: amd64]
Compiled at 2021-01-17
Copyright (c) 2006-2021 by Andreas Rumpf
git hash: 6c07b0a1f8daf96078ae68b83ead1d48675969d7
active boot switches: -d:release
The text was updated successfully, but these errors were encountered:
Seems to be caused by #15919 - on line 1226 there's a generic proc inside of another generic proc, so the compiler doesn't like that (or maybe it's not allowed at all).
One possible solution is to move downloadFileEx out of downloadFile, then it starts working again.
Nim from the devel branch doesn't compile simple example with
AsyncHttpClient.downloadFile
.Example
Current Output
Expected Output
[downloaded file]
Possible Solution
If I change
httpclient
implementation:it works again.
The text was updated successfully, but these errors were encountered: