Add destructors

This commit is contained in:
Zahary Karadjov 2020-04-11 21:27:33 +03:00
commit 1f49f1179d
No known key found for this signature in database
GPG key ID: C8936F8A3073D609
3 changed files with 149 additions and 103 deletions

View file

@ -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()