diff options
author | Martin Odersky <odersky@gmail.com> | 2014-07-19 11:31:50 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-07-19 11:31:54 +0200 |
commit | 5000f5f7e874c63a2ad3b6090478d46ba05160ac (patch) | |
tree | bfc1e542962fe4675e0e57918cca2ce7af995076 /tests | |
parent | 9e1759f34dcfa90f688ef560c90f209dcb9b1374 (diff) | |
download | dotty-5000f5f7e874c63a2ad3b6090478d46ba05160ac.tar.gz dotty-5000f5f7e874c63a2ad3b6090478d46ba05160ac.tar.bz2 dotty-5000f5f7e874c63a2ad3b6090478d46ba05160ac.zip |
Fixed #143
The problem was that TermRefWithSignatures did not take shadowed names into account
when reconstituting themselves under a new prefix.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pending/pos/i143.scala | 14 |
1 files changed, 14 insertions, 0 deletions
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 + } +} |