Skip to content

Commit 563f2c5

Browse files
Use symbol for integral division
1 parent c825198 commit 563f2c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

InlineNumeric.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,15 @@ given BigDecimalAsIfInlineIntegral: BigDecimalIsConflicted with InlineIntegral[B
214214

215215
object tests:
216216
import InlineNumeric.*
217-
import InlineIntegral.{/ => quot, %}
217+
import InlineIntegral.{/ => ¦, %}
218218
import InlineFractional.{/}
219219

220220
// A generic inline operation that inlines/specializes primitive operations
221221
inline def foo[T: InlineNumeric](inline a: T, inline b: T) =
222222
a + b * b
223223

224224
inline def div[T: InlineIntegral](inline a: T, inline b: T) =
225-
a quot b % b
225+
a ¦ b % b
226226

227227
inline def div[T: InlineFractional](inline a: T, inline b: T) =
228228
a / b + a

0 commit comments

Comments
 (0)