From e42388682094c63055440c8915d8215935007584 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 16 May 2014 11:55:36 +0200 Subject: Added t25xx tests --- tests/pending/pos/t2591.scala | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/pending/pos/t2591.scala (limited to 'tests/pending/pos/t2591.scala') 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 +} -- cgit v1.2.3