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 96e1870 commit 0582474Copy full SHA for 0582474
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -4215,8 +4215,9 @@ object Types {
4215
4216
def tryCompiletimeConstantFold(using Context): Type =
4217
if myTryCompiletimeConstantFoldPeriod != ctx.period then
4218
- myTryCompiletimeConstantFoldPeriod = ctx.period
4219
myTryCompiletimeConstantFold = tryCompiletimeConstantFoldImpl
+ if !isProvisional then
4220
+ myTryCompiletimeConstantFoldPeriod = ctx.period
4221
myTryCompiletimeConstantFold.nn
4222
4223
private def tryCompiletimeConstantFoldImpl(using Context): Type = tycon match {
0 commit comments