Skip to content

Commit

Permalink
change in test
Browse files Browse the repository at this point in the history
  • Loading branch information
krux02 committed Feb 12, 2020
1 parent 0b212c5 commit 5408ae0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/system/io.nim
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ proc writeQuoted[T](f: File, arg: T) =

proc write*[T: tuple|object](f: File; arg: T) =
f.write "("
const isNamed = isNamedTuple(T)
const isNamed = T is object or isNamedTuple(T)
var count = 0
for name, value in fieldPairs(arg):
if count != 0:
Expand Down
2 changes: 1 addition & 1 deletion tests/parser/tmultiline_comments.nim
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ proc writeln(a: auto, x: varargs[string, `$`]) =
write a, x
stdout.write "\n"

proc write() = write(stdout)
proc write() = discard
proc writeln() =
stdout.write "\n"

Expand Down

0 comments on commit 5408ae0

Please sign in to comment.