枚举

  1. enum Color {
  2. red green blue
  3. }
  4. mut color := Color.red
  5. // V knows that `color` is a `Color`. No need to use `Color.green` here.
  6. color = .green
  7. println(color) // ==> "1" TODO: print "green"?