summary refs log tree commit diff stats
path: root/tests/rodfiles/int2bool.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rodfiles/int2bool.nim')
-rw-r--r--tests/rodfiles/int2bool.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/rodfiles/int2bool.nim b/tests/rodfiles/int2bool.nim
new file mode 100644
index 000000000..e6add9848
--- /dev/null
+++ b/tests/rodfiles/int2bool.nim
@@ -0,0 +1,5 @@
+
+converter uglyToBool*(x: int): bool =
+  result = x != 0
+
+