diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2011-10-20 22:28:50 +0000 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2011-10-20 22:28:50 +0000 |
commit | dd8706fc1190909552fd5a84c3e311aaa2e80466 (patch) | |
tree | 12c9127d536d6c2ee4861f7fffd1a5d0d0009a96 /test/files/pos | |
parent | 3921e5be742ff9523825037056e82b7b82db5932 (diff) | |
download | scala-dd8706fc1190909552fd5a84c3e311aaa2e80466.tar.gz scala-dd8706fc1190909552fd5a84c3e311aaa2e80466.tar.bz2 scala-dd8706fc1190909552fd5a84c3e311aaa2e80466.zip |
5033: align bound syms when comparing method types
can't believe I missed that one...
closes SI-5033
more complete test case to make sure the multi-arglist case works as
well
no review
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t5033.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/pos/t5033.scala b/test/files/pos/t5033.scala new file mode 100644 index 0000000000..c4c3334852 --- /dev/null +++ b/test/files/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] +}
\ No newline at end of file |