diff options
author | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2011-01-17 15:18:06 +0000 |
---|---|---|
committer | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2011-01-17 15:18:06 +0000 |
commit | 16e7ad360d1a902d6bd5c845642dbe14bcecdb9d (patch) | |
tree | a189e624a75dbb47a689a821208b41b0141e2ee0 /test/files/run/spec-overrides.scala | |
parent | be2778d50f1a73a941c6ffe6355f0ed401d6d8eb (diff) | |
download | scala-16e7ad360d1a902d6bd5c845642dbe14bcecdb9d.tar.gz scala-16e7ad360d1a902d6bd5c845642dbe14bcecdb9d.tar.bz2 scala-16e7ad360d1a902d6bd5c845642dbe14bcecdb9d.zip |
Adapted specialization tests to track number of...
Adapted specialization tests to track number of boxings.
Review by dragos
Diffstat (limited to 'test/files/run/spec-overrides.scala')
-rw-r--r-- | test/files/run/spec-overrides.scala | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/files/run/spec-overrides.scala b/test/files/run/spec-overrides.scala deleted file mode 100644 index f5d2e2f9c7..0000000000 --- a/test/files/run/spec-overrides.scala +++ /dev/null @@ -1,20 +0,0 @@ - trait Base[@specialized(Double) B] { - def default: B; - } - - trait D1 extends Base[Double] { - override def default = 0.0; - } - - class D2 extends D1 { - override def default: Double = 1.0; - } - - -object Test extends Application { - val d2 = new D2 - - assert(d2.default == 1.0, d2.default) - assert((d2: Base[_]).default == 1.0, (d2: Base[_]).default) - assert((d2: D1).default == 1.0, (d2: D1).default) -} |