[OutputStream] Clean up TODO items unlocked by Nim 1.2; Simplify the public API
This commit is contained in:
parent
8a3cf6778d
commit
62136f8e79
2 changed files with 48 additions and 59 deletions
|
|
@ -154,11 +154,11 @@ suite "output stream":
|
|||
|
||||
test "nim odd behavior":
|
||||
# discovered in status-im/nim-snappy#2
|
||||
proc encode(s: OutputStreamVar) =
|
||||
proc encode(s: OutputStream) =
|
||||
check true
|
||||
|
||||
proc abc(s: OutputStreamVar) =
|
||||
OutputStreamVar(s.outputDevice).encode
|
||||
proc abc(s: OutputStream) =
|
||||
OutputStream(s.outputDevice).encode
|
||||
check true
|
||||
|
||||
var os = new OutputStream
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue