diff options
author | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2011-03-24 15:00:41 +0000 |
---|---|---|
committer | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2011-03-24 15:00:41 +0000 |
commit | d0e519a3091ce7e14781a8b929c35a3e228194d8 (patch) | |
tree | 161f5c08de8d018d85cd73a663f2929b9a3eeaac /test/files/specialized | |
parent | af011572ee74162202b2a66a98bf5e480b5b435b (diff) | |
download | scala-d0e519a3091ce7e14781a8b929c35a3e228194d8.tar.gz scala-d0e519a3091ce7e14781a8b929c35a3e228194d8.tar.bz2 scala-d0e519a3091ce7e14781a8b929c35a3e228194d8.zip |
Added a temporary fix for #4351, but disabled i...
Added a temporary fix for #4351, but disabled it because the extend
specialized class with nonspecialized type-parameters is used in the
stdlib already.
Disabling scala.parallel package, adding the currently disabled
scala.concurrent package which will be implemented in some of the next
releases.
Review by phaller.
Diffstat (limited to 'test/files/specialized')
-rw-r--r-- | test/files/specialized/td3651.check | 2 | ||||
-rw-r--r-- | test/files/specialized/td3651.scala | 19 |
2 files changed, 21 insertions, 0 deletions
diff --git a/test/files/specialized/td3651.check b/test/files/specialized/td3651.check new file mode 100644 index 0000000000..9aea9e0ce5 --- /dev/null +++ b/test/files/specialized/td3651.check @@ -0,0 +1,2 @@ +0 +0
\ No newline at end of file diff --git a/test/files/specialized/td3651.scala b/test/files/specialized/td3651.scala new file mode 100644 index 0000000000..117710b6dc --- /dev/null +++ b/test/files/specialized/td3651.scala @@ -0,0 +1,19 @@ + + + + +class Base[@specialized(Double) A](val a: A) + +class Derived(override val a: Double) extends Base[Double](a) + +object Test { + def main(args: Array[String]) { + val b: Base[Double] = new Derived(10) + b.a + println(runtime.BoxesRunTime.doubleBoxCount) + + val der = new Derived(10) + der.a + println(runtime.BoxesRunTime.doubleBoxCount) + } +} |