diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-08-12 16:39:39 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-08-12 16:39:39 -0700 |
commit | f17fb5eaa545490c761acd4f6979a619f919ac86 (patch) | |
tree | b97fd5bae270db65b7fd50cd1acba3762de699a3 /test | |
parent | 8659c2f51b007a701a27084f160ecc41fe30829a (diff) | |
parent | 26aebfac0c6db18483d0db67bcd7f8faf7684f0d (diff) | |
download | scala-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.scala | 17 |
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 |