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 efe7a9b commit 46da4cdCopy full SHA for 46da4cd
compiler/src/dotty/tools/dotc/transform/init/Semantic.scala
@@ -418,11 +418,11 @@ object Semantic {
418
if a == b then a else RefSet(a :: b :: Nil)
419
420
case (a: (Fun | Warm | ThisRef), RefSet(refs)) =>
421
- if refs.exists(_ == a) then b
+ if refs.exists(_ == a) then b: Value // fix pickling test
422
else RefSet(a :: refs)
423
424
case (RefSet(refs), b: (Fun | Warm | ThisRef)) =>
425
- if refs.exists(_ == b) then a
+ if refs.exists(_ == b) then a: Value // fix pickling test
426
else RefSet(b :: refs)
427
428
case (RefSet(refs1), RefSet(refs2)) =>
0 commit comments