diff options
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) -} |