Skip to content

Commit b76d2e4

Browse files
committed
Make Contexts.ctx an inline function
1 parent f71a4b3 commit b76d2e4

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
@@ -51,7 +51,7 @@ object Contexts {
5151
private val initialStore = store8
5252

5353
/** The current context */
54-
def ctx(using ctx: Context): Context = ctx
54+
inline def ctx(using ctx: Context): Context = ctx
5555

5656
/** Run `op` with given context */
5757
inline def inContext[T](c: Context)(inline op: Context ?=> T): T =

0 commit comments

Comments
 (0)