lama_byterun/regression/test040.lama

17 lines
160 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)
2018-05-16 16:50:36 +03:00
| _ -> write (4)
esac
}
x := read ();
2019-03-07 19:06:04 +03:00
f (A);
f (B);
f (C);
f (D)