ByteStreamVar doesn't autodereference to ByteStream, fix https://github.com/status-im/nim-beacon-chain/pull/436#issuecomment-530391076 (#12)
This commit is contained in:
parent
7a42cab625
commit
24474e69d1
|
@ -89,7 +89,7 @@ template loadFile*(Format: distinct type,
|
|||
params: varargs[untyped]): auto =
|
||||
mixin init, ReaderType
|
||||
var stream = openFile(filename)
|
||||
defer: stream.close() # TODO: destructors
|
||||
defer: stream[].close() # TODO: destructors
|
||||
|
||||
# TODO:
|
||||
# Remove this when statement once the following bug is fixed:
|
||||
|
|
Loading…
Reference in New Issue