From 5000f5f7e874c63a2ad3b6090478d46ba05160ac Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sat, 19 Jul 2014 11:31:50 +0200 Subject: Fixed #143 The problem was that TermRefWithSignatures did not take shadowed names into account when reconstituting themselves under a new prefix. --- tests/pending/pos/i143.scala | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/pending/pos/i143.scala (limited to 'tests/pending/pos/i143.scala') diff --git a/tests/pending/pos/i143.scala b/tests/pending/pos/i143.scala new file mode 100644 index 000000000..8804b20ce --- /dev/null +++ b/tests/pending/pos/i143.scala @@ -0,0 +1,14 @@ +package dotty.tools.dotc +package transform + +import dotty.tools.dotc.core.Denotations._ +import dotty.tools.dotc.core.Symbols._ +import dotty.tools.dotc.core.Contexts._ + +class TC5 extends AnyVal { + implicit val ctx: Context = ??? + + def candidates(mbr: SingleDenotation): Boolean = { + mbr.symbol.denot(ctx).exists + } +} -- cgit v1.2.3