Skip to content

Commit 82d25c2

Browse files
committed
Fix attribute pickling
1 parent da6797f commit 82d25c2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

compiler/src/dotty/tools/dotc/core/tasty/AttributePickler.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ object AttributePickler:
1616
): Unit =
1717
if attributes.scala2StandardLibrary || attributes.explicitNulls then // or any other attribute is set
1818
pickler.newSection(AttributesSection, buf)
19-
// Pickle attributes
20-
if attributes.scala2StandardLibrary then buf.writeNat(TastyFormat.SCALA2STANDARDLIBRARYattr)
21-
if attributes.explicitNulls then buf.writeNat(TastyFormat.EXPLICITNULLSattr)
19+
// Pickle attributes
20+
if attributes.scala2StandardLibrary then buf.writeNat(TastyFormat.SCALA2STANDARDLIBRARYattr)
21+
if attributes.explicitNulls then buf.writeNat(TastyFormat.EXPLICITNULLSattr)
22+
end if
2223

2324
end pickleAttributes
2425

0 commit comments

Comments
 (0)