summary refs log tree commit diff stats
path: root/tests/converter/tconverter.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/converter/tconverter.nim')
-rw-r--r--tests/converter/tconverter.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/converter/tconverter.nim b/tests/converter/tconverter.nim
new file mode 100644
index 000000000..0bf067c55
--- /dev/null
+++ b/tests/converter/tconverter.nim
@@ -0,0 +1,11 @@
+discard """
+  output: '''fooo fooo'''
+"""
+
+converter intToString[T](i: T): string = "fooo"
+
+let
+  foo: string = 1
+  bar: string = intToString(2)
+
+echo foo, " ", bar
\ No newline at end of file