summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-12-03 17:25:51 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2011-12-03 17:25:51 -0500
commit87e2e610a69b268d10a22a7142a44a2c0afd4799 (patch)
tree946b720078be0609810fff15dd02bd9966310209 /tests
parent40098da68420bb08aa0aa0889fa5298fd005c245 (diff)
Don't crash on invalid URL head terms during Tag
Diffstat (limited to 'tests')
-rw-r--r--tests/invurl.ur9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/invurl.ur b/tests/invurl.ur
new file mode 100644
index 00000000..aef1ced6
--- /dev/null
+++ b/tests/invurl.ur
@@ -0,0 +1,9 @@
+val r = { F = fn () => return <xml/> }
+
+fun main () : transaction page = return <xml><body>
+ <a link={r.F ()}>Go</a>
+</body></xml>
+
+fun main' (r' : {F : unit -> transaction page}) : transaction page = return <xml><body>
+ <a link={r'.F ()}>Go</a>
+</body></xml>