Skip to content

Commit 1762fc2

Browse files
committed
bugfix: Revert the change in scala#23438 and leave only the test
1 parent 0387c5b commit 1762fc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/TypeOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ object TypeOps:
125125
def isLegalPrefix(pre: Type)(using Context): Boolean =
126126
// isLegalPrefix is relaxed after typer unless we're doing an implicit
127127
// 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)
128+
pre.isStable || !ctx.phase.isTyper
129129

130130
/** Implementation of Types#simplified */
131131
def simplify(tp: Type, theMap: SimplifyMap | Null)(using Context): Type = {

0 commit comments

Comments
 (0)