lama_byterun/regression/test040.lama

17 lines
159 B
Text
Raw Normal View History

var x;
2018-05-16 16:50:36 +03:00
fun f (x) {
case x of
2019-03-07 19:06:04 +03:00
A -> write (1)
| B -> write (2)
| C -> write (3)
2024-01-26 18:45:03 +01:00
| _ -> write (4)
2018-05-16 16:50:36 +03:00
esac
}
x := read ();
2019-03-07 19:06:04 +03:00
f (A);
f (B);
f (C);
f (D)