From 26aebfac0c6db18483d0db67bcd7f8faf7684f0d Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 23 Jul 2013 13:38:33 -0700 Subject: SI-7690 ghost error message fails compile I won't even try to explain the error reporting code, because it would have no basis in reality. However this change appears to fix the symptom reported. --- test/files/pos/t7690.scala | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/files/pos/t7690.scala (limited to 'test') diff --git a/test/files/pos/t7690.scala b/test/files/pos/t7690.scala new file mode 100644 index 0000000000..e8911a93e8 --- /dev/null +++ b/test/files/pos/t7690.scala @@ -0,0 +1,17 @@ +object A +trait B[T] + +object C { + implicit def notUsed[L[x]](in: L[Int]): B[L[Int]] = ??? + + class E(val ls: Int) { + def x(f: Int => Boolean): Boolean = f(ls) + } + implicit def isUsed(ls: Int): E = new E(ls) + + def amethod(in: Int): Boolean = + in.x { i => + import A._ + "asdf" == i.toString + } +} \ No newline at end of file -- cgit v1.2.3