summaryrefslogtreecommitdiff
path: root/testsuite/compiler/compute/Variants.gf
blob: e77b8446925e6b061ac549ddd097937561547d4e (plain)
1
2
3
4
5
6
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;
}