我正在尝试使用 specs2,但隐式转换与我从 scala.concurrent.duration._ 导入的转换混合存在问题,有没有办法从范围中排除隐式转换?
import org.specs2.mutable.Specification
import scala.concurrent.duration._
class StatisticsSampleCacheSpec extends Specification {
val map: Map[Long, Duration] = Map(
1L -> 5.minute,
3L -> 3.day,
5L -> 5.day,
7L -> 30.day)
}