blob: 416c8ca04aa9d64663911d7a6927c38c7bb91a01 (
plain) (
tree)
|
|
package object squants {
type Time = squants.time.Time
}
package squants.time {
class Time
object Time { def x = 2 }
}
package squants.velocity {
import squants.time._ // <-- imports `Time` value
import squants.Time // <-- imports type alias
object Velocity { Time.x }
}
import scala.math.BigDecimal.RoundingMode
import scala.math.BigDecimal.RoundingMode.RoundingMode
object Money {
def foo(round: RoundingMode = RoundingMode.HALF_EVEN): Int = ???
}
|