It looks like we are using other method for building TimeSpan using .millis than .seconds/.minutes/.hours
For .seconds/.minutes/.hours we have implicit class TimeSpanBuilder with methods returning TimeSpan
In contrary .millis uses:
implicit conversion from int/long to TimeSpan -> TimeSpan.millis returns Long -> long is converted to TimeSpan second time
I've tried to add simillar .millis builder in TimeSpanBuilder to resolve this network but it causes:
[error] Note that implicit conversions are not applicable because they are ambiguous:
[error] both method intToTimeSpanBuilder in trait TimeHelpers of type (in: Int)net.liftweb.util.Helpers.TimeSpanBuilder
[error] and method intToTimeSpan in trait TimeHelpers of type (in: Int)net.liftweb.util.Helpers.TimeSpan
[error] are possible conversion functions from Int(5) to ?{def millis: ?}
For now it looks like the only one way to skip warnings is to explicitly use TimeSpan(Int). In future releases we could remove deprecated conversions and add next .millis builder.
Any other ideas?
Arek