diff --git a/compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala b/compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala index bf5370e5ba54..c062e3fbae8e 100644 --- a/compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala +++ b/compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala @@ -64,7 +64,6 @@ class TastyUnpickler(reader: TastyReader) { val result = readName().toTypeName val params = until(end)(readName().toTypeName) var sig = Signature(params, result) - if (sig == Signature.NotAMethod) sig = Signature.NotAMethod // needed temporarily, as long as we read old tasty original.withSig(sig).asInstanceOf[TermName] case _ => simpleNameKindOfTag(tag)(readName())