Add destructors
This commit is contained in:
parent
b234a99e56
commit
1f49f1179d
3 changed files with 149 additions and 103 deletions
|
|
@ -152,14 +152,3 @@ suite "output stream":
|
|||
# The final outputs are the same
|
||||
check altOutput == memStream.getOutput
|
||||
|
||||
test "nim odd behavior":
|
||||
# discovered in status-im/nim-snappy#2
|
||||
proc encode(s: OutputStream) =
|
||||
check true
|
||||
|
||||
proc abc(s: OutputStream) =
|
||||
OutputStream(s.outputDevice).encode
|
||||
check true
|
||||
|
||||
var os = new OutputStream
|
||||
os.abc()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue