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
import std/ioutils
let file1 =open("dummy.txt", mode=fmWrite)
let dupfile1fd =duplicate(file1.getFileHandle())
var f : FiledoAssert(isNil(f))
let res =open(f, dupfile1fd, mode=fmWrite)
# Both failsdoAssert(notisNil(f)) # f == nildoAssert(res) # res == falselet msg ="This is a test message that will be displayed ! \n"
f.write(msg)
f.close()
Current Output
Error: unhandled exception: test.nim(9, 9) `not isNil(f)` [AssertionDefect]
Error: execution of an external program failed'
Expected Output
This is a test message that will be displayed !
Additional Information
Works on Linux
On branch devel commit ea6c28249ae7107fba954f90dac31132564dcaad
The text was updated successfully, but these errors were encountered:
Opening a File from a FileHandle using
does not work on Windows but does on Linux.
Example
Current Output
Expected Output
Additional Information
Works on Linux
On branch devel commit ea6c28249ae7107fba954f90dac31132564dcaad
The text was updated successfully, but these errors were encountered: