diff options
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) } |