blob: 08336c5313102246d4acffbda679f8c2b12b0d7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
sum Shape {
variant Rectangle;
variant Triangle;
}
struct Rectangle {
field width: Int32;
field height: Int32;
}
struct Triangle {
field width: Int32;
field height: Int32;
}
|