Skip to content

Commit d85cc74

Browse files
authored
Merge pull request #10770 from dotty-staging/update-Typable-to-TypeTest
Update `Typable` to `TypeTest`
2 parents 3a7a6ae + 65fe221 commit d85cc74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ class Typer extends Namer
802802
.orElse(withTag(defn.ClassTagClass.typeRef.appliedTo(tref)))
803803
.getOrElse(tree)
804804
if tag.symbol.owner == defn.ClassTagClass && config.Feature.sourceVersion.isAtLeast(config.SourceVersion.`3.1`) then
805-
report.warning("Use of ClassTag for type testing may be unsound. Consider using `reflect.Typable` instead.", tree.srcPos)
805+
report.warning("Use of `scala.reflect.ClassTag` for type testing may be unsound. Consider using `scala.reflect.TypeTest` instead.", tree.srcPos)
806806
tag
807807
case _ => tree
808808
}

0 commit comments

Comments
 (0)