From ffc94ba5eb1d577565c8170fc68bd79ec8eee90b Mon Sep 17 00:00:00 2001 From: Wojciech Mazur Date: Wed, 15 Jun 2022 11:05:32 +0200 Subject: [PATCH] Fix typo in the comments --- compiler/src/dotty/tools/backend/jvm/CoreBTypes.scala | 2 +- compiler/src/dotty/tools/backend/jvm/PostProcessor.scala | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/src/dotty/tools/backend/jvm/CoreBTypes.scala b/compiler/src/dotty/tools/backend/jvm/CoreBTypes.scala index c518b3b6565a..defbea859e2c 100644 --- a/compiler/src/dotty/tools/backend/jvm/CoreBTypes.scala +++ b/compiler/src/dotty/tools/backend/jvm/CoreBTypes.scala @@ -127,7 +127,7 @@ abstract class CoreBTypesFromSymbols[I <: DottyBackendInterface] extends CoreBTy * srNothingRef and srNullRef exist at run-time only. They are the bytecode-level manifestation (in * method signatures only) of what shows up as NothingClass (scala.Nothing) resp. NullClass (scala.Null) in Scala ASTs. * - * Therefore, when srNothingRef or srNullRef are to be emitted, a mapping is jliSerializedLambdaRefeeded: the internal + * Therefore, when srNothingRef or srNullRef are to be emitted, a mapping is needed: the internal * names of NothingClass and NullClass can't be emitted as-is. * TODO @lry Once there's a 2.11.3 starr, use the commented argument list. The current starr crashes on the type literal `scala.runtime.Nothing$` */ diff --git a/compiler/src/dotty/tools/backend/jvm/PostProcessor.scala b/compiler/src/dotty/tools/backend/jvm/PostProcessor.scala index 213986eb4d67..79851734ba76 100644 --- a/compiler/src/dotty/tools/backend/jvm/PostProcessor.scala +++ b/compiler/src/dotty/tools/backend/jvm/PostProcessor.scala @@ -49,9 +49,9 @@ class PostProcessor(val frontendAccess: PostProcessorFrontendAccess, val bTypes: val clsFile = classfileWriter.writeClass(internalName, bytes, sourceFile) if clsFile != null then clazz.onFileCreated(clsFile) - clazz.tastyBinGen.foreach{ binGen => - classfileWriter.writeTasty(internalName, binGen(), sourceFile) - } + clazz.tastyBinGen.foreach{ genTastyBinary => + classfileWriter.writeTasty(internalName, genTastyBinary(), sourceFile) + } } private def warnCaseInsensitiveOverwrite(clazz: GeneratedClass) = {