mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-05 04:27:44 +00:00
14 lines
204 B
Nim
14 lines
204 B
Nim
discard """
|
|
output: '''!!Hi!!'''
|
|
"""
|
|
# bug #4658
|
|
import future
|
|
|
|
var x = 123
|
|
|
|
proc twice[T](f: T -> T): T -> T = (x: T) => f(f(x))
|
|
|
|
proc quote(s: string): string = "!" & s & "!"
|
|
|
|
echo twice(quote)("Hi")
|