summaryrefslogtreecommitdiff
path: root/tests/polyjs.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2012-12-11 15:58:23 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2012-12-11 15:58:23 -0500
commit87d2e717c0d164759fce1df7d89f25fda8434586 (patch)
treea3420f76f92ec80cb6ca0d78438ea7ec9cfae0df /tests/polyjs.ur
parenteab77d1d8c4c6bdc3b7857713c8bc1e5947f58d0 (diff)
Ignore polymorphism in JavaScript calls to custom FFI functions, allowing a kind of simple dynamic typing (unsafe, of course)
Diffstat (limited to 'tests/polyjs.ur')
-rw-r--r--tests/polyjs.ur5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/polyjs.ur b/tests/polyjs.ur
new file mode 100644
index 00000000..fe10080b
--- /dev/null
+++ b/tests/polyjs.ur
@@ -0,0 +1,5 @@
+open PolyjsFfi
+
+fun main () : transaction page = return <xml><body>
+ <button onclick={fn _ => alert (one "hi" ^ two "bye")}/>
+</body></xml>