summaryrefslogtreecommitdiff
path: root/test/files/pos/t7690.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-07-23 13:38:33 -0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2013-08-11 11:54:06 -0700
commit26aebfac0c6db18483d0db67bcd7f8faf7684f0d (patch)
tree8b61eba527e82c72e2cdb1899ad51b10ef29faa3 /test/files/pos/t7690.scala
parente7876d5c41bbea0ee4679815edb5dc1ecef4c6a9 (diff)
downloadscala-26aebfac0c6db18483d0db67bcd7f8faf7684f0d.tar.gz
scala-26aebfac0c6db18483d0db67bcd7f8faf7684f0d.tar.bz2
scala-26aebfac0c6db18483d0db67bcd7f8faf7684f0d.zip
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.
Diffstat (limited to 'test/files/pos/t7690.scala')
-rw-r--r--test/files/pos/t7690.scala17
1 files changed, 17 insertions, 0 deletions
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