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 837ed3a commit b7cdb9eCopy full SHA for b7cdb9e
compiler/src/dotty/tools/dotc/transform/init/Objects.scala
@@ -812,7 +812,8 @@ class Objects(using Context @constructorOnly):
812
else
813
Bottom
814
else if target.exists then
815
- if target.isOneOf(Flags.Mutable) then
+ def isNextFieldOfColonColon: Boolean = ref.klass.showName == "::" && target.name.toString == "next"
816
+ if target.isOneOf(Flags.Mutable) && !isNextFieldOfColonColon then
817
if ref.hasVar(target) then
818
val addr = ref.varAddr(target)
819
if addr.owner == State.currentObject then
0 commit comments