mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 13:30:33 +00:00
close #3152; closed via f663ca7
This commit is contained in:
committed by
Andreas Rumpf
parent
6f935598f4
commit
b101a59734
@@ -5,6 +5,7 @@ dynamic: var
|
||||
static: const
|
||||
static: literal
|
||||
static: constant folding
|
||||
static: static string
|
||||
'''
|
||||
"""
|
||||
|
||||
@@ -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"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user