File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
presentation-compiler/src/main/dotty/tools/pc/completions Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import dotty.tools.dotc.ast.untpd
15
15
import dotty .tools .dotc .core .Comments .Comment
16
16
import dotty .tools .dotc .core .Constants .Constant
17
17
import dotty .tools .dotc .core .Contexts .*
18
+ import dotty .tools .dotc .core .Decorators .toTermName
18
19
import dotty .tools .dotc .core .Denotations .SingleDenotation
19
20
import dotty .tools .dotc .core .Flags
20
21
import dotty .tools .dotc .core .Flags .*
@@ -770,8 +771,8 @@ class Completions(
770
771
private lazy val ArrowAssocClass : ClassSymbol = requiredClass(" scala.Predef.ArrowAssoc" )
771
772
private lazy val EnsuringClass : ClassSymbol = requiredClass(" scala.Predef.Ensuring" )
772
773
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
775
776
776
777
private def isNotLocalForwardReference (sym : Symbol )(using Context ): Boolean =
777
778
! sym.isLocalToBlock ||
You can’t perform that action at this time.
0 commit comments