File tree 2 files changed +4
-4
lines changed
compiler/src/dotty/tools/dotc
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ class TastyLoader(val tastyFile: AbstractFile) extends SymbolLoader {
422
422
val tastyBytes = tastyFile.toByteArray
423
423
new tasty.DottyUnpickler (tastyBytes) // reads header and name table
424
424
425
- def compilationUnitInfo : CompilationUnitInfo | Null =
425
+ val compilationUnitInfo : CompilationUnitInfo | Null =
426
426
val tastyHeader = unpickler.unpickler.header
427
427
val tastyVersion = TastyVersion (
428
428
tastyHeader.majorVersion,
@@ -453,10 +453,10 @@ class TastyLoader(val tastyFile: AbstractFile) extends SymbolLoader {
453
453
val message = e match
454
454
case e : UnpickleException =>
455
455
s """ TASTy file ${tastyFile.canonicalPath} could not be read, failing with:
456
- | ${Option (e.getMessage).getOrElse(" " )}"""
456
+ | ${Option (e.getMessage).getOrElse(" " )}""" .stripMargin
457
457
case _ =>
458
458
s """ TASTy file ${tastyFile.canonicalPath} is broken, reading aborted with ${e.getClass}
459
- | ${Option (e.getMessage).getOrElse(" " )}"""
459
+ | ${Option (e.getMessage).getOrElse(" " )}""" .stripMargin
460
460
throw IOException (message, e)
461
461
462
462
Original file line number Diff line number Diff line change @@ -1073,7 +1073,7 @@ trait Checking {
1073
1073
case id @ Ident (name : Name ) =>
1074
1074
def methCompiledBeforeDeprecation =
1075
1075
meth.tastyVersion match
1076
- case Some (version) => version.minor < 4 // compiled before 3.4
1076
+ case Some (version) => version.major == 28 && version. minor < 4 // compiled before 3.4
1077
1077
case _ => false // compiled with the current compiler
1078
1078
name.toTermName match {
1079
1079
case name : SimpleName
You can’t perform that action at this time.
0 commit comments