From 65fe2214d7f35c31c80459e26d60d600cd64cee5 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Sun, 13 Dec 2020 11:33:52 +0100 Subject: [PATCH] Update `Typable` to `TypeTest` `Typable` was an old name we had for `TypeTest` it the PR that introduced `TypeTest`. We never used `Typable`. --- compiler/src/dotty/tools/dotc/typer/Typer.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/typer/Typer.scala b/compiler/src/dotty/tools/dotc/typer/Typer.scala index da49725ee304..db87d2f45faa 100644 --- a/compiler/src/dotty/tools/dotc/typer/Typer.scala +++ b/compiler/src/dotty/tools/dotc/typer/Typer.scala @@ -802,7 +802,7 @@ class Typer extends Namer .orElse(withTag(defn.ClassTagClass.typeRef.appliedTo(tref))) .getOrElse(tree) if tag.symbol.owner == defn.ClassTagClass && config.Feature.sourceVersion.isAtLeast(config.SourceVersion.`3.1`) then - report.warning("Use of ClassTag for type testing may be unsound. Consider using `reflect.Typable` instead.", tree.srcPos) + report.warning("Use of `scala.reflect.ClassTag` for type testing may be unsound. Consider using `scala.reflect.TypeTest` instead.", tree.srcPos) tag case _ => tree }