Minor refactor: replace space property with field

This commit is contained in:
Commander Tvis 2020-06-11 08:50:37 +07:00
parent 927aa589ad
commit e6f97c532b
No known key found for this signature in database
GPG Key ID: 70D5F4DCB0972F1B

View File

@ -67,7 +67,7 @@ open class AsmExpressionField<T>(private val field: Field<T>) :
AsmBinaryOperation(algebra, operation, left, right)
override fun divide(a: AsmExpression<T>, b: AsmExpression<T>): AsmExpression<T> =
AsmBinaryOperation(space, FieldOperations.DIV_OPERATION, a, b)
AsmBinaryOperation(field, FieldOperations.DIV_OPERATION, a, b)
operator fun AsmExpression<T>.div(arg: T): AsmExpression<T> = this / const(arg)
operator fun T.div(arg: AsmExpression<T>): AsmExpression<T> = arg / this