blob: d5042e52c16adf3ecb1daa3c1f01ee699a1f14f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/// A 2D shape.
sum Shape {
variant Rectangle;
variant Triangle;
}
struct Rectangle {
field width: Int32;
field height: Int32;
}
struct Triangle {
field width: Int32;
field height: Int32;
}
|