quad match {
case Fork(nw, ne, sw, se) =>
val cx = quad.centerX
val cy = quad.centerY
val sz = quad.size
drawRect(cx - sz / 2, cy - sz / 2, sz / 2, nw)
drawRect(cx - sz / 2, cy, sz / 2, sw)
drawRect(cx, cy - sz / 2, sz / 2, ne)
drawRect(cx, cy, sz / 2, se)
drawQuad(depth + 1, nw)
drawQuad(depth + 1, ne)
drawQuad(depth + 1, sw)
drawQuad(depth + 1, se)
case Empty(_, _, _) | Leaf(_, _, _, _) =>
// done
}
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
scala> def fun(x: Int): Unit = { case x if x > 0 => x + 1; case _ => }
[[syntax trees at end of parser]] // <console>package $line4 { object $read extends scala.AnyRef { // ... def fun(x: Int): Unit = <empty> match { case (x @ _) if x.$greater(0) => x.$plus(1) case _ => () } } } }}
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.