Skip to content

Commit

Permalink
Only compare tasty major and minor versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneFlesselle committed Oct 19, 2023
1 parent f163bdd commit d015fb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/src/dotty/tools/dotc/transform/SymUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ object SymUtils:
*/
def mirrorSupportsDefaultArguments(using Context): Boolean = self.isClass && {
val d = self.asClass.classDenot
TastyFormat.isVersionCompatible(28, 4, 1, d.tastyMajorVersion, d.tastyMinorVersion, d.tastyExperimentalVersion)
// TastyFormat.isVersionCompatible(28, 4, 1, d.tastyMajorVersion, d.tastyMinorVersion, d.tastyExperimentalVersion)
d.tastyMajorVersion == 28 && d.tastyMinorVersion >= 4
}

/** Is this an old style implicit conversion?
Expand Down

0 comments on commit d015fb1

Please sign in to comment.