diff options
author | Martin Odersky <odersky@gmail.com> | 2014-05-16 11:55:36 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-05-30 14:38:00 +0200 |
commit | e42388682094c63055440c8915d8215935007584 (patch) | |
tree | a2a392d9ddc052b282c84b8c1c4a1a4793872679 /tests/pending/pos/t2591.scala | |
parent | 05668169eca68bbdc777fbf698f92e256f8e50a9 (diff) | |
download | dotty-e42388682094c63055440c8915d8215935007584.tar.gz dotty-e42388682094c63055440c8915d8215935007584.tar.bz2 dotty-e42388682094c63055440c8915d8215935007584.zip |
Added t25xx tests
Diffstat (limited to 'tests/pending/pos/t2591.scala')
-rw-r--r-- | tests/pending/pos/t2591.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/pending/pos/t2591.scala b/tests/pending/pos/t2591.scala new file mode 100644 index 000000000..47ae551bf --- /dev/null +++ b/tests/pending/pos/t2591.scala @@ -0,0 +1,15 @@ +class A +class B + +object Implicits { + implicit def imp(x: A): Int = 41 + implicit def imp(x: B): Int = 41 +} + +object Test { + // should cause imp to be in scope so that the next expression type checks + // `import Implicits._` works + import Implicits.imp + + (new A) : Int +} |