diff options
author | Martin Odersky <odersky@gmail.com> | 2014-07-19 11:37:00 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-07-19 11:37:00 +0200 |
commit | 26d4ac090dbe0f661b62fa2a173b95482cd758e3 (patch) | |
tree | 7c7846a0892949cbb810d83ae6c535e662eddd4e /tests/pos | |
parent | 5000f5f7e874c63a2ad3b6090478d46ba05160ac (diff) | |
download | dotty-26d4ac090dbe0f661b62fa2a173b95482cd758e3.tar.gz dotty-26d4ac090dbe0f661b62fa2a173b95482cd758e3.tar.bz2 dotty-26d4ac090dbe0f661b62fa2a173b95482cd758e3.zip |
Added test for #143 to regression tests
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/i143.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/pos/i143.scala b/tests/pos/i143.scala new file mode 100644 index 000000000..8804b20ce --- /dev/null +++ b/tests/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 + } +} |