From a1a2961a3aba856f7753005541e439636ff1c5b6 Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Sun, 20 Dec 2015 11:49:38 +0100 Subject: Linker specific: add note to withSymAndName. --- src/dotty/tools/dotc/core/Types.scala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/dotty/tools') diff --git a/src/dotty/tools/dotc/core/Types.scala b/src/dotty/tools/dotc/core/Types.scala index 21b74e07b..9eaf9bc89 100644 --- a/src/dotty/tools/dotc/core/Types.scala +++ b/src/dotty/tools/dotc/core/Types.scala @@ -1767,6 +1767,10 @@ object Types { withFixedSym(prefix, name, sym) else if (sym.defRunId != NoRunId && sym.isCompleted) withSig(prefix, name, sym.signature) withSym (sym, sym.signature) + // Linker note: + // this is problematic, as withSig method could return a hash-consed refference + // that could have symbol already set making withSym trigger a double-binding error + // ./tests/run/absoverride.scala demonstates this else all(prefix, name) withSym (sym, Signature.NotAMethod) -- cgit v1.2.3