summaryrefslogtreecommitdiff
path: root/test/files/pos/spec-constr.scala
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2010-05-20 16:20:57 +0000
committerIulian Dragos <jaguarul@gmail.com>2010-05-20 16:20:57 +0000
commitdba07aa5a45ba53ecfeef8e42b8b4362b0fecd83 (patch)
tree3303a3f56a9f8d33e213b50f9aab086e412de7b9 /test/files/pos/spec-constr.scala
parent293b70525e5d22e64af51d99aea6714b197aa052 (diff)
downloadscala-dba07aa5a45ba53ecfeef8e42b8b4362b0fecd83.tar.gz
scala-dba07aa5a45ba53ecfeef8e42b8b4362b0fecd83.tar.bz2
scala-dba07aa5a45ba53ecfeef8e42b8b4362b0fecd83.zip
Closes #3381.
Diffstat (limited to 'test/files/pos/spec-constr.scala')
-rw-r--r--test/files/pos/spec-constr.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/pos/spec-constr.scala b/test/files/pos/spec-constr.scala
new file mode 100644
index 0000000000..e908b65a41
--- /dev/null
+++ b/test/files/pos/spec-constr.scala
@@ -0,0 +1,7 @@
+class SparseArray2[@specialized(Int) T:ClassManifest](val maxSize: Int, initialLength:Int = 3) {
+ private var data = new Array[T](initialLength);
+ private var index = new Array[Int](initialLength);
+
+ // comment out to compile correctly
+ data.length + 3;
+}