1
0
forked from GitHub/gf-core
Files
gf-core/testsuite/compiler/compute/Variants.gf
hallgren 621291a575 Compute.ConcreteNew: add missing case for variant functions
Also adding a test case in the test suite for this.
2012-12-10 13:25:32 +00:00

8 lines
155 B
Plaintext

resource Variants = {
oper
hello = r.f "hello";
r = { f:Str->Str = (id|dup) };
id : Str->Str = \ s -> s;
dup : Str->Str = \ s -> s++s;
}