aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos/i143.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-07-19 11:31:50 +0200
committerMartin Odersky <odersky@gmail.com>2014-07-19 11:31:54 +0200
commit5000f5f7e874c63a2ad3b6090478d46ba05160ac (patch)
treebfc1e542962fe4675e0e57918cca2ce7af995076 /tests/pending/pos/i143.scala
parent9e1759f34dcfa90f688ef560c90f209dcb9b1374 (diff)
downloaddotty-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/pending/pos/i143.scala')
-rw-r--r--tests/pending/pos/i143.scala14
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
+ }
+}