Skip to content

Commit a1a2961

Browse files
committed
Linker specific: add note to withSymAndName.
1 parent facb334 commit a1a2961

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/dotty/tools/dotc/core/Types.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,6 +1767,10 @@ object Types {
17671767
withFixedSym(prefix, name, sym)
17681768
else if (sym.defRunId != NoRunId && sym.isCompleted)
17691769
withSig(prefix, name, sym.signature) withSym (sym, sym.signature)
1770+
// Linker note:
1771+
// this is problematic, as withSig method could return a hash-consed refference
1772+
// that could have symbol already set making withSym trigger a double-binding error
1773+
// ./tests/run/absoverride.scala demonstates this
17701774
else
17711775
all(prefix, name) withSym (sym, Signature.NotAMethod)
17721776

0 commit comments

Comments
 (0)