aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i2212.scala
blob: 416c8ca04aa9d64663911d7a6927c38c7bb91a01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 = ???
}