aboutsummaryrefslogtreecommitdiff
path: root/tests/actor/reject/generic_input.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/actor/reject/generic_input.zc')
-rw-r--r--tests/actor/reject/generic_input.zc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/actor/reject/generic_input.zc b/tests/actor/reject/generic_input.zc
new file mode 100644
index 0000000..d13bc7c
--- /dev/null
+++ b/tests/actor/reject/generic_input.zc
@@ -0,0 +1,5 @@
+namespace;
+include rt, actor;
+typecheck on;
+actor Counter<T> { T handle(T value) { return value; } }
+fn main() { Counter<int>* a = rt.new(Counter<int>); a.spawn(); a.send("wrong"); return 0; }