Skip to content

Commit ffc94ba

Browse files
committed
Fix typo in the comments
1 parent 90cfa03 commit ffc94ba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: compiler/src/dotty/tools/backend/jvm/CoreBTypes.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ abstract class CoreBTypesFromSymbols[I <: DottyBackendInterface] extends CoreBTy
127127
* srNothingRef and srNullRef exist at run-time only. They are the bytecode-level manifestation (in
128128
* method signatures only) of what shows up as NothingClass (scala.Nothing) resp. NullClass (scala.Null) in Scala ASTs.
129129
*
130-
* Therefore, when srNothingRef or srNullRef are to be emitted, a mapping is jliSerializedLambdaRefeeded: the internal
130+
* Therefore, when srNothingRef or srNullRef are to be emitted, a mapping is needed: the internal
131131
* names of NothingClass and NullClass can't be emitted as-is.
132132
* 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$`
133133
*/

Diff for: compiler/src/dotty/tools/backend/jvm/PostProcessor.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ class PostProcessor(val frontendAccess: PostProcessorFrontendAccess, val bTypes:
4949
val clsFile = classfileWriter.writeClass(internalName, bytes, sourceFile)
5050
if clsFile != null then clazz.onFileCreated(clsFile)
5151

52-
clazz.tastyBinGen.foreach{ binGen =>
53-
classfileWriter.writeTasty(internalName, binGen(), sourceFile)
54-
}
52+
clazz.tastyBinGen.foreach{ genTastyBinary =>
53+
classfileWriter.writeTasty(internalName, genTastyBinary(), sourceFile)
54+
}
5555
}
5656

5757
private def warnCaseInsensitiveOverwrite(clazz: GeneratedClass) = {

0 commit comments

Comments
 (0)