Files
gf-core/testsuite/compiler/compute/variant.gf
2021-09-24 15:41:05 +02:00

8 lines
154 B
Plaintext

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