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.
2 parents b60a6ae + 0a2b676 commit dd73318Copy full SHA for dd73318
src/dotty/tools/dotc/core/Types.scala
@@ -2558,7 +2558,10 @@ object Types {
2558
* uninstantiated
2559
*/
2560
def instanceOpt(implicit ctx: Context): Type =
2561
- if (inst.exists) inst else ctx.typerState.instType(this)
+ if (inst.exists) inst else {
2562
+ ctx.typerState.ephemeral = true
2563
+ ctx.typerState.instType(this)
2564
+ }
2565
2566
/** Is the variable already instantiated? */
2567
def isInstantiated(implicit ctx: Context) = instanceOpt.exists
tests/pending/pos/hkrange.scala renamed to tests/pos/hkrange.scala
0 commit comments