diff options
author | Vlad Ureche <vlad.ureche@gmail.com> | 2013-09-02 19:08:49 +0200 |
---|---|---|
committer | Vlad Ureche <vlad.ureche@gmail.com> | 2013-11-05 17:30:36 +0100 |
commit | e09a8a2b7f821be43703bd5bf3a064e171d8f66c (patch) | |
tree | 905b8519217b9318fce03b323a40094dfbb04c58 /test/files/pos/SI-4012-a.scala | |
parent | 05681d4def04f290728e673b7856a57b872c8019 (diff) | |
download | scala-e09a8a2b7f821be43703bd5bf3a064e171d8f66c.tar.gz scala-e09a8a2b7f821be43703bd5bf3a064e171d8f66c.tar.bz2 scala-e09a8a2b7f821be43703bd5bf3a064e171d8f66c.zip |
SI-4012 Mixin and specialization work well
The bug was fixed along with SI-7638 in 504b5f3.
Diffstat (limited to 'test/files/pos/SI-4012-a.scala')
-rw-r--r-- | test/files/pos/SI-4012-a.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/pos/SI-4012-a.scala b/test/files/pos/SI-4012-a.scala new file mode 100644 index 0000000000..7fceeea3c3 --- /dev/null +++ b/test/files/pos/SI-4012-a.scala @@ -0,0 +1,7 @@ +trait C1[+A] { + def head: A = sys.error("") +} +trait C2[@specialized +A] extends C1[A] { + override def head: A = super.head +} +class C3 extends C2[Char] |