summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2013-08-12 16:39:39 -0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2013-08-12 16:39:39 -0700
commitf17fb5eaa545490c761acd4f6979a619f919ac86 (patch)
treeb97fd5bae270db65b7fd50cd1acba3762de699a3 /test
parent8659c2f51b007a701a27084f160ecc41fe30829a (diff)
parent26aebfac0c6db18483d0db67bcd7f8faf7684f0d (diff)
downloadscala-f17fb5eaa545490c761acd4f6979a619f919ac86.tar.gz
scala-f17fb5eaa545490c761acd4f6979a619f919ac86.tar.bz2
scala-f17fb5eaa545490c761acd4f6979a619f919ac86.zip
Merge pull request #2804 from adriaanm/rebase-2763
SI-7690 ghost error message fails compile [Rebase of #2763]
Diffstat (limited to 'test')
-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