We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49eac6e commit ffe77a4Copy full SHA for ffe77a4
src/dotty/tools/dotc/core/unpickleScala2/PickleBuffer.scala
@@ -287,13 +287,16 @@ object PickleBuffer {
287
val shift = ChunkBits
288
val mask = ChunkSize - 1
289
assert(6 * ChunkBits == ScalaFlagEnd)
290
- FlagSet(
+ val t = FlagSet(
291
map(0)((sflags >>> (shift * 0)).toInt & mask) |
292
map(1)((sflags >>> (shift * 1)).toInt & mask) |
293
map(2)((sflags >>> (shift * 2)).toInt & mask) |
294
map(3)((sflags >>> (shift * 3)).toInt & mask) |
295
map(4)((sflags >>> (shift * 4)).toInt & mask) |
296
map(5)((sflags >>> (shift * 5)).toInt & mask)
297
)
298
+ if (!isType && t.is(Module, Lazy))
299
+ t | Lazy // scala2 modules do not always set lazy flag. Dotty modules do
300
+ else t
301
}
302
0 commit comments