Skip to content

Commit 6162688

Browse files
committed
Make comparing an inline method
1 parent d86879e commit 6162688

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Contexts.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ object Contexts {
731731
result.init(ctx)
732732
result
733733

734-
def comparing[T](op: TypeComparer => T)(using Context): T =
734+
inline def comparing[T](inline op: TypeComparer => T)(using Context): T =
735735
val saved = ctx.base.comparersInUse
736736
try op(comparer)
737737
finally ctx.base.comparersInUse = saved

0 commit comments

Comments
 (0)