The same for minus

This commit is contained in:
Alexander Nozik 2018-08-25 21:18:17 +03:00
parent 3576ddaf31
commit 520765abb9

View File

@ -104,6 +104,9 @@ interface Field<T> : Ring<T> {
operator fun T.plus(b: Number) = this.plus(b * one)
operator fun Number.plus(b: T) = b + this
operator fun T.minus(b: Number) = this.minus(b * one)
operator fun Number.minus(b: T) = -b + this
}
/**