diff options
Diffstat (limited to 'tests/overload/tstaticoverload.nim')
-rw-r--r-- | tests/overload/tstaticoverload.nim | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/overload/tstaticoverload.nim b/tests/overload/tstaticoverload.nim deleted file mode 100644 index 33ca49e56..000000000 --- a/tests/overload/tstaticoverload.nim +++ /dev/null @@ -1,30 +0,0 @@ -discard """ -output: ''' -dynamic: let -dynamic: var -static: const -static: literal -static: constant folding -static: static string -''' -""" - -proc foo(s: string) = - echo "dynamic: ", s - -proc foo(s: static[string]) = - echo "static: ", s - -let l = "let" -var v = "var" -const c = "const" - -type staticString = static[string] - -foo(l) -foo(v) -foo(c) -foo("literal") -foo("constant" & " " & "folding") -foo(staticString("static string")) - |