summaryrefslogtreecommitdiff
path: root/test/files/neg/t6263.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-08-21 12:18:09 +0200
committerPaul Phillips <paulp@improving.org>2012-09-01 10:02:22 -0700
commit6cda8a6f972d014f9b73c54a43bb80f99b64adb4 (patch)
treee01065cc5dba939979139d114f79cdeed21d391e /test/files/neg/t6263.scala
parentd9c0cb6165bd60d79bdf764291c417c86623b042 (diff)
downloadscala-6cda8a6f972d014f9b73c54a43bb80f99b64adb4.tar.gz
scala-6cda8a6f972d014f9b73c54a43bb80f99b64adb4.tar.bz2
scala-6cda8a6f972d014f9b73c54a43bb80f99b64adb4.zip
Fix for SI-6263, futile adaptation.
Don't try to implicitly convert an unstable prefix to a stable one by applying a view. As the matrix spoon kid says, "that's impossible."
Diffstat (limited to 'test/files/neg/t6263.scala')
-rw-r--r--test/files/neg/t6263.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t6263.scala b/test/files/neg/t6263.scala
new file mode 100644
index 0000000000..6575185b5c
--- /dev/null
+++ b/test/files/neg/t6263.scala
@@ -0,0 +1,6 @@
+class C(val a: Any) extends AnyVal
+class A {
+ implicit def c2AnyRef(c: C): AnyRef = new {}
+ val c = new C(0)
+ type t = c.type
+}