Skip to content

Commit

Permalink
chore: Allow to write tasty for Scala2 symbols under -Ycompile-scala2…
Browse files Browse the repository at this point in the history
…-library
  • Loading branch information
hamzaremmal committed Feb 6, 2025
1 parent 0129594 commit 885403e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/core/tasty/TreePickler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ class TreePickler(pickler: TastyPickler, attributes: Attributes) {
assert(isModifierTag(tag))
writeByte(tag)
}
assert(!flags.is(Scala2x))
if flags.is(Scala2x) then assert(attributes.scala2StandardLibrary)
if (flags.is(Private)) writeModTag(PRIVATE)
if (flags.is(Protected)) writeModTag(PROTECTED)
if (flags.is(Final, butNot = Module)) writeModTag(FINAL)
Expand Down

0 comments on commit 885403e

Please sign in to comment.