From f3a375b0e88508f7c8eb6cf6c47e0fb29e13d49a Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Tue, 10 Nov 2009 16:39:13 +0000 Subject: test for #2591 --- test/files/pos/t2591.scala | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/files/pos/t2591.scala (limited to 'test/files') diff --git a/test/files/pos/t2591.scala b/test/files/pos/t2591.scala new file mode 100644 index 0000000000..d3c32ba4e9 --- /dev/null +++ b/test/files/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 +} \ No newline at end of file -- cgit v1.2.3