diff options
author | David MacIver <david.maciver@gmail.com> | 2008-10-31 16:01:54 +0000 |
---|---|---|
committer | David MacIver <david.maciver@gmail.com> | 2008-10-31 16:01:54 +0000 |
commit | 7efd2d6eb00017db48c21e1808eeaea97e92c494 (patch) | |
tree | cca78010082028f8cb164978b4728e7b8c07d63d /test/files/pos5/t1263 | |
parent | fa88dfe5cdc88779ed0734893cae538db833ccc4 (diff) | |
download | scala-7efd2d6eb00017db48c21e1808eeaea97e92c494.tar.gz scala-7efd2d6eb00017db48c21e1808eeaea97e92c494.tar.bz2 scala-7efd2d6eb00017db48c21e1808eeaea97e92c494.zip |
Test from some of Ismael's tickets.
Diffstat (limited to 'test/files/pos5/t1263')
-rw-r--r-- | test/files/pos5/t1263/Test.java | 16 | ||||
-rw-r--r-- | test/files/pos5/t1263/test.scala | 10 |
2 files changed, 26 insertions, 0 deletions
diff --git a/test/files/pos5/t1263/Test.java b/test/files/pos5/t1263/Test.java new file mode 100644 index 0000000000..0eb43e881a --- /dev/null +++ b/test/files/pos5/t1263/Test.java @@ -0,0 +1,16 @@ +package test; + +import java.rmi.RemoteException; + +import test.Map; + +public class Test implements Map<String, String> { + public Map<String, String>.MapTo plus(String o) { + return null; + } + + public int $tag() throws RemoteException { + return 0; + } +} + diff --git a/test/files/pos5/t1263/test.scala b/test/files/pos5/t1263/test.scala new file mode 100644 index 0000000000..92d8c1cdfa --- /dev/null +++ b/test/files/pos5/t1263/test.scala @@ -0,0 +1,10 @@ +package test + +trait Map[A, +B] { + def plus(key: A): MapTo = new MapTo(key) + + class MapTo(key: A) { + def arrow [B1 >: B](value: B1) = null + } +} + |