aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos/spec-constr-new.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/pos/spec-constr-new.scala')
-rw-r--r--tests/pending/pos/spec-constr-new.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pending/pos/spec-constr-new.scala b/tests/pending/pos/spec-constr-new.scala
new file mode 100644
index 000000000..c6acc862a
--- /dev/null
+++ b/tests/pending/pos/spec-constr-new.scala
@@ -0,0 +1,9 @@
+import scala.reflect.{ClassTag, classTag}
+
+class SparseArray2[@specialized(Int) T:ClassTag](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;
+}