We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e67ac03 commit 85a9257Copy full SHA for 85a9257
compiler/src/dotty/tools/dotc/typer/ConstFold.scala
@@ -48,7 +48,7 @@ object ConstFold {
48
}
49
50
51
- private def finish[T <: Tree](tree: T)(compX: => Constant)(implicit ctx: Context): T =
+ @forceInline private def finish[T <: Tree](tree: T)(compX: => Constant)(implicit ctx: Context): T =
52
try {
53
val x = compX
54
if (x ne null) tree.withType(ConstantType(x)).asInstanceOf[T]
0 commit comments