default.km 246 B

123456789101112131415
  1. type Scalar Float;
  2. type Point {
  3. x: Scalar,
  4. y: Scalar
  5. };
  6. export const @default: Scalar := 0.0;
  7. do
  8. let p := { |Point| {} },
  9. let {x,y} := p,
  10. { os::println { "(?,?)" (x.{String}, y.{String}) } }
  11. . { crash-on-error };