diff options
author | Martin Odersky <odersky@gmail.com> | 2009-08-11 07:35:44 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-08-11 07:35:44 +0000 |
commit | fdf7441ed1d9c547411b7718d2c2304c097926d5 (patch) | |
tree | 2136eb8044ee376364092634a0c1677513e8931b /test/files/pos/t1642 | |
parent | 60533e82c898d0ead48850fa877620202337c770 (diff) | |
download | scala-fdf7441ed1d9c547411b7718d2c2304c097926d5.tar.gz scala-fdf7441ed1d9c547411b7718d2c2304c097926d5.tar.bz2 scala-fdf7441ed1d9c547411b7718d2c2304c097926d5.zip |
new test for #1642
Diffstat (limited to 'test/files/pos/t1642')
-rw-r--r-- | test/files/pos/t1642/JavaCallingScalaHashMap.java | 8 | ||||
-rw-r--r-- | test/files/pos/t1642/test.scala | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/test/files/pos/t1642/JavaCallingScalaHashMap.java b/test/files/pos/t1642/JavaCallingScalaHashMap.java new file mode 100644 index 0000000000..976e465ff7 --- /dev/null +++ b/test/files/pos/t1642/JavaCallingScalaHashMap.java @@ -0,0 +1,8 @@ +import scala.collection.immutable.HashMap; +import scala.collection.immutable.Map; + +public class JavaCallingScalaHashMap { + public static void main( String[] args ) { + Map<String, Integer> hashMap = new HashMap<String, Integer>(); + } +} diff --git a/test/files/pos/t1642/test.scala b/test/files/pos/t1642/test.scala new file mode 100644 index 0000000000..72e53b0c9a --- /dev/null +++ b/test/files/pos/t1642/test.scala @@ -0,0 +1,6 @@ +package x +abstract class H[A] { + type P <: R[P] + def a: P +} +class R[F] |