blob: 9b2dfafcf653545cf82bd6fb4dbdfae976c68cff (
plain) (
tree)
|
|
object Test {
case class *(a: Int, b: Int)
type Star = *
case class P(a: Int, b: Star) // alias still required
def main(args: Array[String]): Unit = {
val v = new *(6,7)
val x * y = v
printf("%d,%d\n",x,y)
val p = P(5, v)
val P(a, b * c) = p
printf("%d,%d,%d\n",a,b,c)
}
}
|