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 0387c5b commit 1762fc2Copy full SHA for 1762fc2
compiler/src/dotty/tools/dotc/core/TypeOps.scala
@@ -125,7 +125,7 @@ object TypeOps:
125
def isLegalPrefix(pre: Type)(using Context): Boolean =
126
// isLegalPrefix is relaxed after typer unless we're doing an implicit
127
// search (this matters when doing summonInline in an inline def like in tests/pos/i17222.8.scala).
128
- pre.isStable || !ctx.phase.isTyper && ctx.mode.is(Mode.ImplicitsEnabled)
+ pre.isStable || !ctx.phase.isTyper
129
130
/** Implementation of Types#simplified */
131
def simplify(tp: Type, theMap: SimplifyMap | Null)(using Context): Type = {
0 commit comments