Skip to content

Commit

Permalink
Eliminate build warning when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brjohnsn committed Feb 12, 2018
1 parent 56df0b9 commit c1fd09c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rx.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ export schedulers, core, ops, connectable



proc println[A](a: A) = echo(a)

when isMainModule:
import future, sequtils

proc println[A](a: A) = echo(a)

var o = observable(@[1, 2, 3, 4, 5])
.map((x: int) => x * x)
.filter((x: int) => x > 3)
Expand Down

0 comments on commit c1fd09c

Please sign in to comment.