summaryrefslogtreecommitdiff
path: root/test/files/pos/t3363.scala
diff options
context:
space:
mode:
authorAntonio Cunei <antonio.cunei@epfl.ch>2010-05-12 07:45:22 +0000
committerAntonio Cunei <antonio.cunei@epfl.ch>2010-05-12 07:45:22 +0000
commitc932ec58f9e6fc90c9497bb4cbfb09f2b398e7ea (patch)
tree1bbb00aca2f6bc710a8cc1d25e61153f261496b2 /test/files/pos/t3363.scala
parent64609f93548ea7637718057b23d0fb19d998e812 (diff)
downloadscala-c932ec58f9e6fc90c9497bb4cbfb09f2b398e7ea.tar.gz
scala-c932ec58f9e6fc90c9497bb4cbfb09f2b398e7ea.tar.bz2
scala-c932ec58f9e6fc90c9497bb4cbfb09f2b398e7ea.zip
Merged revisions 21881-21882,21884-21886,21888,...
Merged revisions 21881-21882,21884-21886,21888,21891,21897-21898,21901,21908 via svnmerge from https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r21881 | dragos | 2010-05-10 17:36:17 +0200 (Mon, 10 May 2010) | 1 line Fixed -Xcheckinit build.no review. ........ r21882 | odersky | 2010-05-10 17:40:08 +0200 (Mon, 10 May 2010) | 1 line Disabled scalacheck tests because they interfere with library refactorings (refactorings break scalacheck). ........ r21884 | odersky | 2010-05-10 17:50:23 +0200 (Mon, 10 May 2010) | 1 line made MathCommon a class to gain some speed. ........ r21885 | odersky | 2010-05-10 17:51:46 +0200 (Mon, 10 May 2010) | 1 line Made builder in MutableMapFactory use += instead of +. ........ r21886 | odersky | 2010-05-10 17:52:25 +0200 (Mon, 10 May 2010) | 1 line Added sizeHints to operations where it made sense. Made sizeHint interface more flexible. ........ r21888 | dragos | 2010-05-10 18:21:40 +0200 (Mon, 10 May 2010) | 1 line Closed #3413. No review. ........ r21891 | rytz | 2010-05-10 19:16:02 +0200 (Mon, 10 May 2010) | 1 line close #3415. relates to r21680. review by milessabin. ........ r21897 | odersky | 2010-05-11 11:34:56 +0200 (Tue, 11 May 2010) | 1 line Closes #t3363. Review by extempore. ........ r21898 | odersky | 2010-05-11 11:35:30 +0200 (Tue, 11 May 2010) | 1 line Corrected sizeHints for scanLeft/Right ........ r21901 | milessabin | 2010-05-11 14:42:21 +0200 (Tue, 11 May 2010) | 1 line Fix from Mirko Stocker and unit test for #3416. Review by plocinic. ........ r21908 | rytz | 2010-05-12 09:19:48 +0200 (Wed, 12 May 2010) | 1 line new msil.jar to make msil build. noreview. ........
Diffstat (limited to 'test/files/pos/t3363.scala')
-rwxr-xr-xtest/files/pos/t3363.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/files/pos/t3363.scala b/test/files/pos/t3363.scala
new file mode 100755
index 0000000000..bae54084ea
--- /dev/null
+++ b/test/files/pos/t3363.scala
@@ -0,0 +1,18 @@
+object TestCase {
+
+ //now matter if you put (abstract) class or trait it will fail in all cases
+ trait MapOps[T]
+
+ //if fs was reduced to List (generic type with one parameter) then the code compiles
+ //if you inherit from MapOps[T] instead of MapOps[F] then code compiles fine
+ implicit def map2ops[T,F](fs: Map[T,F]) = new MapOps[F] {
+ //if you remove this line, then code compiles
+ lazy val m: Manifest[T] = error("just something to make it compile")
+ def is(xs: List[T]) = List(xs)
+ }
+
+ def main(args: Array[String]) {
+ println(Map(1 -> "2") is List(2))
+ }
+
+ }