Skip to content

Commit 35d20a5

Browse files
committed
restore scala.Predef.classOf().
1 parent 2593c87 commit 35d20a5

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

compiler/src/dotty/tools/dotc/semanticdb/ExtractSemanticDB.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ class ExtractSemanticDB extends Phase {
172172

173173
private def excludeDefStrict(sym: Symbol)(given Context): Boolean =
174174
sym.name.is(NameKinds.DefaultGetterName)
175-
|| sym == defn.Predef_classOf
176175

177176
private def blacklistPrefix(sym: Symbol)(given Context): Boolean =
178177
sym.is(Package)

tests/semanticdb/InstrumentTyper.expect.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ class InstrumentTyper/*<<=example.InstrumentTyper#*/ { self/*<<=local0*/: AnyRef
2222
)
2323
type AnnotatedType/*<<=example.InstrumentTyper#AnnotatedType#*/ = Int/*=>>scala.Int#*/ @param
2424
def singletonType/*<<=example.InstrumentTyper#singletonType().*/(x/*<<=example.InstrumentTyper#singletonType().(x)*/: Predef/*=>>scala.Predef.*/.type) = ???/*=>>scala.Predef.`???`().*/
25-
final val clazzOf/*<<=example.InstrumentTyper#clazzOf.*/ = classOf[Option/*=>>scala.Option#*/[Int/*=>>scala.Int#*/]]
25+
final val clazzOf/*<<=example.InstrumentTyper#clazzOf.*/ = classOf/*=>>scala.Predef.classOf().*/[Option/*=>>scala.Option#*/[Int/*=>>scala.Int#*/]]
2626
}

tests/semanticdb/Types.expect.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,6 @@ object Test/*<<=types.Test.*/ {
110110
final val bool/*<<=types.Test.Literal.bool.*/ = true
111111
final val unit/*<<=types.Test.Literal.unit.*/ = ()
112112
final val javaEnum/*<<=types.Test.Literal.javaEnum.*/ = java.nio.file.LinkOption/*=>>java.nio.file.LinkOption.*/.NOFOLLOW_LINKS/*=>>java.nio.file.LinkOption.NOFOLLOW_LINKS.*/
113-
final val clazzOf/*<<=types.Test.Literal.clazzOf.*/ = classOf[Option/*=>>scala.Option#*/[Int/*=>>scala.Int#*/]]
113+
final val clazzOf/*<<=types.Test.Literal.clazzOf.*/ = classOf/*=>>scala.Predef.classOf().*/[Option/*=>>scala.Option#*/[Int/*=>>scala.Int#*/]]
114114
}
115115
}

0 commit comments

Comments
 (0)