diff options
author | Paul Phillips <paulp@improving.org> | 2013-07-23 13:38:33 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-08-11 11:54:06 -0700 |
commit | 26aebfac0c6db18483d0db67bcd7f8faf7684f0d (patch) | |
tree | 8b61eba527e82c72e2cdb1899ad51b10ef29faa3 /test/files | |
parent | e7876d5c41bbea0ee4679815edb5dc1ecef4c6a9 (diff) | |
download | scala-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')
-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 |