Skip to content

Commit 4992b4b

Browse files
i10416bishabosha
andauthored
Update compiler/src/dotty/tools/dotc/core/ContextOps.scala
Co-authored-by: Jamie Thompson <[email protected]>
1 parent 4cb34e5 commit 4992b4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ object ContextOps:
6161
val directSearch =
6262
def asModule =
6363
if name.isTypeName && name.endsWith(StdNames.str.MODULE_SUFFIX) then
64-
pre.findMember(name.stripModuleClassSuffix, pre, required, excluded) match
64+
pre.findMember(name.stripModuleClassSuffix.moduleClassName, pre, required, excluded) match
6565
case NoDenotation => NoDenotation
6666
case symDenot: SymDenotation =>
6767
symDenot.companionModule.denot

0 commit comments

Comments
 (0)