Add a test for type correctness of antiquotes

Antiquotes should evaluate to strings or paths.  This is usually
checked, except in the case where the antiquote makes up the entire
string, as in "${expr}".  This is optimised to expr, which discards
the runtime type checks / coercions.
This commit is contained in:
Eelco Dolstra 2013-10-17 00:45:16 +02:00
parent d6a7aa8f48
commit 9d8a80375d
3 changed files with 3 additions and 0 deletions

View File

@ -0,0 +1 @@
"${x: x}"

View File

@ -0,0 +1 @@
"${./fnord}"

View File

@ -0,0 +1 @@
''${x: x}''