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