From 02ec718e4ad4e63b4152d9d71374c3e24e82adaf Mon Sep 17 00:00:00 2001 From: Jamie Thompson Date: Thu, 2 Nov 2023 18:23:32 +0100 Subject: [PATCH] add explicit result types --- compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala | 2 +- tasty/src/dotty/tools/tasty/TastyHeaderUnpickler.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala b/compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala index 59f5600ff44b..679df42daca8 100644 --- a/compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala +++ b/compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala @@ -56,7 +56,7 @@ object TastyUnpickler { end Scala3CompilerConfig /** A config for the TASTy reader of a scala 3 compiler */ - val scala3CompilerConfig = new Scala3CompilerConfig with UnpicklerConfig.DefaultTastyVersion {} + val scala3CompilerConfig: UnpicklerConfig = new Scala3CompilerConfig with UnpicklerConfig.DefaultTastyVersion {} } diff --git a/tasty/src/dotty/tools/tasty/TastyHeaderUnpickler.scala b/tasty/src/dotty/tools/tasty/TastyHeaderUnpickler.scala index 05cecf240770..1a67913e68ca 100644 --- a/tasty/src/dotty/tools/tasty/TastyHeaderUnpickler.scala +++ b/tasty/src/dotty/tools/tasty/TastyHeaderUnpickler.scala @@ -74,7 +74,7 @@ object UnpicklerConfig { } /** A config for the TASTy reader of a generic tool */ - val generic = new UnpicklerConfig with Generic with DefaultTastyVersion {} + val generic: UnpicklerConfig = new UnpicklerConfig with Generic with DefaultTastyVersion {} } class TastyHeaderUnpickler(config: UnpicklerConfig, reader: TastyReader) {