diff options
author | Martin Odersky <odersky@gmail.com> | 2009-12-18 15:20:56 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-12-18 15:20:56 +0000 |
commit | a41d9351d532d5f39a519b4a83740f3592c2a870 (patch) | |
tree | 711b6103331e3b5d211350a551413714abaa33d4 /test | |
parent | ce4572ca49c2ba0db6b02ffffdece66c4cd3b5e8 (diff) | |
download | scala-a41d9351d532d5f39a519b4a83740f3592c2a870.tar.gz scala-a41d9351d532d5f39a519b4a83740f3592c2a870.tar.bz2 scala-a41d9351d532d5f39a519b4a83740f3592c2a870.zip |
added test case for #2775 and commented the han...
added test case for #2775 and commented the handling code in Implicits
better. Gilles already had a look so noreview.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/neg/t2775.check | 4 | ||||
-rw-r--r-- | test/files/neg/t2775.scala | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/files/neg/t2775.check b/test/files/neg/t2775.check new file mode 100644 index 0000000000..a30d35fdd9 --- /dev/null +++ b/test/files/neg/t2775.check @@ -0,0 +1,4 @@ +t2775.scala:1: error: cannot find class manifest for element type B.this.T +trait B[S] { type T = S; val c = new Array[T](1) } + ^ +one error found diff --git a/test/files/neg/t2775.scala b/test/files/neg/t2775.scala new file mode 100644 index 0000000000..9e4f2f606d --- /dev/null +++ b/test/files/neg/t2775.scala @@ -0,0 +1 @@ +trait B[S] { type T = S; val c = new Array[T](1) } |