This commit is contained in:
Andreas Rumpf 2016-08-26 13:02:52 +02:00
commit 89f3e21fc8
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,13 @@
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")