Skip to content

Commit

Permalink
close #3152; closed via f663ca7
Browse files Browse the repository at this point in the history
  • Loading branch information
zah authored and Araq committed Jun 20, 2017
1 parent 6f93559 commit b101a59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/overload/tstaticoverload.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dynamic: var
static: const
static: literal
static: constant folding
static: static string
'''
"""

Expand All @@ -18,9 +19,12 @@ let l = "let"
let v = "var"
const c = "const"

type staticString = static[string]

foo(l)
foo(v)
foo(c)
foo("literal")
foo("constant" & " " & "folding")
foo(staticString("static string"))

0 comments on commit b101a59

Please sign in to comment.