aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/spec-constr-old.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/spec-constr-old.scala')
-rw-r--r--tests/untried/pos/spec-constr-old.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/untried/pos/spec-constr-old.scala b/tests/untried/pos/spec-constr-old.scala
new file mode 100644
index 000000000..e908b65a4
--- /dev/null
+++ b/tests/untried/pos/spec-constr-old.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;
+}