diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2010-05-20 16:20:57 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2010-05-20 16:20:57 +0000 |
commit | dba07aa5a45ba53ecfeef8e42b8b4362b0fecd83 (patch) | |
tree | 3303a3f56a9f8d33e213b50f9aab086e412de7b9 /test/files | |
parent | 293b70525e5d22e64af51d99aea6714b197aa052 (diff) | |
download | scala-dba07aa5a45ba53ecfeef8e42b8b4362b0fecd83.tar.gz scala-dba07aa5a45ba53ecfeef8e42b8b4362b0fecd83.tar.bz2 scala-dba07aa5a45ba53ecfeef8e42b8b4362b0fecd83.zip |
Closes #3381.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/spec-constr.scala | 7 |
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; +} |