diff options
author | Paul Phillips <paulp@improving.org> | 2011-10-14 04:27:35 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-10-14 04:27:35 +0000 |
commit | 9ea2cefb2079aebad2b215f6a699fe6262e2c7a7 (patch) | |
tree | e4d894071f77fce25db53aef313afc4b111c2362 /test/files/pos/t5071.scala | |
parent | fcd0998f1e0f2307e9b0cbae6bf2c36234ca8d17 (diff) | |
download | scala-9ea2cefb2079aebad2b215f6a699fe6262e2c7a7.tar.gz scala-9ea2cefb2079aebad2b215f6a699fe6262e2c7a7.tar.bz2 scala-9ea2cefb2079aebad2b215f6a699fe6262e2c7a7.zip |
Another swing at r25823.
I verified this creates identical library bytecode so I anticipate no
regressions. Review by prokopec anyway.
Diffstat (limited to 'test/files/pos/t5071.scala')
-rw-r--r-- | test/files/pos/t5071.scala | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/files/pos/t5071.scala b/test/files/pos/t5071.scala new file mode 100644 index 0000000000..44ad6276f2 --- /dev/null +++ b/test/files/pos/t5071.scala @@ -0,0 +1,18 @@ +// abstract +trait Foo[@specialized A, Repr] { + self: Repr => +} +trait Bar[A] extends Foo[A, Object] { } +class Baz extends Foo[Int, Baz] { } + +// concrete +trait Bippy { + def f(x: Int) = 5 +} +trait FooC[@specialized A] { + self: Bippy => + + f(10) +} + +class BazC extends FooC[Int] with Bippy { } |