From 446df7a126e6696102902cc2cf8ee61c2d1fb4f0 Mon Sep 17 00:00:00 2001 From: Bersier Date: Thu, 4 Jan 2024 09:44:24 -0500 Subject: [PATCH] Update staging.md See https://github.com/lampepfl/dotty/issues/19211#issuecomment-1842932584 --- docs/_docs/reference/metaprogramming/staging.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_docs/reference/metaprogramming/staging.md b/docs/_docs/reference/metaprogramming/staging.md index 1c154e09f50e..1e1ed8eccb4f 100644 --- a/docs/_docs/reference/metaprogramming/staging.md +++ b/docs/_docs/reference/metaprogramming/staging.md @@ -108,7 +108,7 @@ to get a source-like representation of the expression. import scala.quoted.* // make available the necessary compiler for runtime code generation -given staging.Compiler = staging.Compiler.make(getClass.getClassLoader) +given staging.Compiler = staging.Compiler.make(Predef.getClass.getClassLoader) val f: Array[Int] => Int = staging.run { val stagedSum: Expr[Array[Int] => Int] =