Does it work now ,
This commit is contained in:
@@ -384,20 +384,20 @@ public struct UnitValue<ValueType: ConvertibleToDouble>:
|
||||
}
|
||||
|
||||
/// The result will have the `unit` of the left hand side value.
|
||||
public static func * <L: ConvertibleToDouble, R: ConvertibleToDouble>(
|
||||
lhs: UnitValue<L>, rhs: R
|
||||
public static func * <L: ConvertibleToDouble>(
|
||||
lhs: UnitValue<L>, rhs: Double
|
||||
)
|
||||
-> UnitValue<Double>
|
||||
{
|
||||
.init(value: lhs.value * rhs.doubleValue, unit: lhs.unit)
|
||||
.init(value: lhs.value * rhs, unit: lhs.unit)
|
||||
}
|
||||
|
||||
public static func * <L: ConvertibleToDouble, R: ConvertibleToDouble>(
|
||||
lhs: L, rhs: UnitValue<R>
|
||||
public static func * <R: ConvertibleToDouble>(
|
||||
lhs: Double, rhs: UnitValue<R>
|
||||
)
|
||||
-> UnitValue<Double>
|
||||
{
|
||||
.init(value: lhs.doubleValue * rhs.value, unit: rhs.unit)
|
||||
.init(value: lhs * rhs.value, unit: rhs.unit)
|
||||
}
|
||||
|
||||
/// The result will have the `unit` of the left hand side value.
|
||||
|
||||
Reference in New Issue
Block a user