diff options
Diffstat (limited to 'tests/pos/sigs.scala')
-rw-r--r-- | tests/pos/sigs.scala | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/pos/sigs.scala b/tests/pos/sigs.scala index 4af4bda90..a9a1b464e 100644 --- a/tests/pos/sigs.scala +++ b/tests/pos/sigs.scala @@ -1,31 +1,31 @@ object sigs { - + type Lst[A] = List[A] - + type Twin[B] = (B, B) - + var x = 7 * 9 - + class Base { - + def foo(x: Int): Any = 33 def foo: Object = "x" - + } - + class Sub extends Base { - + override def foo = "abc" - + override def foo(x: Int) = "abc" } - + trait A { self: B => type AA val a: AA & BB - + } - + trait B { this: A => type BB val b: AA & BB |