diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-01-11 02:05:17 -0800 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-01-11 02:05:17 -0800 |
commit | a8122413c0cf2e51cdfd32c0450b91910f8a8cc2 (patch) | |
tree | 0019f1c40119916352c4c9a902662e3784418b5d /test/files | |
parent | aefe3fb844b9ae81068867f4aa19df5f96cd462f (diff) | |
parent | 5876e8c62130b4089b146d4fea5bcd926e47bf6f (diff) | |
download | scala-a8122413c0cf2e51cdfd32c0450b91910f8a8cc2.tar.gz scala-a8122413c0cf2e51cdfd32c0450b91910f8a8cc2.tar.bz2 scala-a8122413c0cf2e51cdfd32c0450b91910f8a8cc2.zip |
Merge pull request #3345 from retronym/ticket/8114
[nomaster] Binary compat. workaround for erasure bug
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/t8114.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/t8114.scala b/test/files/run/t8114.scala new file mode 100644 index 0000000000..ecbca37d2a --- /dev/null +++ b/test/files/run/t8114.scala @@ -0,0 +1,15 @@ +class AbstractTable[T] { type TableElementType } +class Table[T] extends AbstractTable[T] { type TableElementType = T } + +class Query[E, U] +class TableQuery[E <: AbstractTable[_]] extends Query[E, E#TableElementType] + +object Test extends App { + object MyTable extends TableQuery[Table[Long]] + + def list[R](q: Query[_, R]): List[R] = Nil + list/*[Long]*/(MyTable) collect { case x => x } + + // Generates a redundant bridge method (double definition error) + // in 2.10.x due to (at least) the bug in erasure fixed in SI-7120 +} |