Skip to content

Commit 20c8a32

Browse files
committed
Review fix
1 parent 2430188 commit 20c8a32

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

presentation-compiler/src/main/dotty/tools/pc/completions/Completions.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import dotty.tools.dotc.ast.untpd
1515
import dotty.tools.dotc.core.Comments.Comment
1616
import dotty.tools.dotc.core.Constants.Constant
1717
import dotty.tools.dotc.core.Contexts.*
18+
import dotty.tools.dotc.core.Decorators.toTermName
1819
import dotty.tools.dotc.core.Denotations.SingleDenotation
1920
import dotty.tools.dotc.core.Flags
2021
import dotty.tools.dotc.core.Flags.*
@@ -770,8 +771,8 @@ class Completions(
770771
private lazy val ArrowAssocClass: ClassSymbol = requiredClass("scala.Predef.ArrowAssoc")
771772
private lazy val EnsuringClass: ClassSymbol = requiredClass("scala.Predef.Ensuring")
772773
private lazy val StringFormatClass: ClassSymbol = requiredClass("scala.Predef.StringFormat")
773-
private lazy val nnMethod: Symbol = defn.ScalaPredefModule.requiredMethod("nn")
774-
private lazy val runtimeCheckedMethod: Symbol = defn.ScalaPredefModule.requiredMethod("runtimeChecked")
774+
private lazy val nnMethod: Symbol = defn.ScalaPredefModule.info.member("nn".toTermName).symbol
775+
private lazy val runtimeCheckedMethod: Symbol = defn.ScalaPredefModule.info.member("runtimeChecked".toTermName).symbol
775776

776777
private def isNotLocalForwardReference(sym: Symbol)(using Context): Boolean =
777778
!sym.isLocalToBlock ||

0 commit comments

Comments
 (0)