summaryrefslogtreecommitdiff
path: root/testsuite/compiler/compute/Variants.gf
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2012-12-10 13:25:32 +0000
committerhallgren <hallgren@chalmers.se>2012-12-10 13:25:32 +0000
commit621291a575cd4462729a178158def39d0d411c8f (patch)
treed2269ee041da51ff88af978cd1c3661c0aa90cda /testsuite/compiler/compute/Variants.gf
parent45a2629ee55863603d9be10723770df8617f1935 (diff)
Compute.ConcreteNew: add missing case for variant functions
Also adding a test case in the test suite for this.
Diffstat (limited to 'testsuite/compiler/compute/Variants.gf')
-rw-r--r--testsuite/compiler/compute/Variants.gf7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/compiler/compute/Variants.gf b/testsuite/compiler/compute/Variants.gf
new file mode 100644
index 000000000..e77b84469
--- /dev/null
+++ b/testsuite/compiler/compute/Variants.gf
@@ -0,0 +1,7 @@
+resource Variants = {
+ oper
+ hello = r.f "hello";
+ r = { f:Str->Str = (id|dup) };
+ id : Str->Str = \ s -> s;
+ dup : Str->Str = \ s -> s++s;
+}