diff options
Diffstat (limited to 'tests/untried/pos/t5033.scala')
-rw-r--r-- | tests/untried/pos/t5033.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/untried/pos/t5033.scala b/tests/untried/pos/t5033.scala new file mode 100644 index 000000000..3aa9fce5f --- /dev/null +++ b/tests/untried/pos/t5033.scala @@ -0,0 +1,15 @@ +trait Eater { + type Food[T] +} + +trait Fruit { + type Seed +} + +trait PipExtractor { + def extract(a: Fruit)(b: Eater): b.Food[a.Seed] +} + +trait LaserGuidedPipExtractor extends PipExtractor { + def extract(f: Fruit)(g: Eater): g.Food[f.Seed] +} |