summaryrefslogtreecommitdiff
path: root/test/files/pos/implicits.scala
diff options
context:
space:
mode:
authorAntonio Cunei <antonio.cunei@epfl.ch>2009-12-18 15:22:51 +0000
committerAntonio Cunei <antonio.cunei@epfl.ch>2009-12-18 15:22:51 +0000
commit2ab456d13df1ac50539e4620f62f6e234f3c8446 (patch)
tree865acb3c7eb91100b232aa73214687f53e6dd1c9 /test/files/pos/implicits.scala
parenta861322f83c23ef1801a0dcb963020b20f8a1b37 (diff)
downloadscala-2ab456d13df1ac50539e4620f62f6e234f3c8446.tar.gz
scala-2ab456d13df1ac50539e4620f62f6e234f3c8446.tar.bz2
scala-2ab456d13df1ac50539e4620f62f6e234f3c8446.zip
Merged revisions 20229-20233 via svnmerge from
https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r20229 | odersky | 2009-12-18 16:16:51 +0100 (Fri, 18 Dec 2009) | 1 line Closed #1492. review by extempore ........ r20230 | odersky | 2009-12-18 16:18:44 +0100 (Fri, 18 Dec 2009) | 1 line Closed #2779. review by community. ........ r20231 | odersky | 2009-12-18 16:20:56 +0100 (Fri, 18 Dec 2009) | 1 line added test case for #2775 and commented the handling code in Implicits better. Gilles already had a look so noreview. ........ r20232 | dubochet | 2009-12-18 16:21:44 +0100 (Fri, 18 Dec 2009) | 1 line [scaladoc] Added option "-doc-version" to Scaladoc tool (and "docversion" attribute to ant task). Both "-doc-version" and "-doc-title" can be set, but are not yet used in the output. No review. ........ r20233 | odersky | 2009-12-18 16:22:11 +0100 (Fri, 18 Dec 2009) | 1 line Closed #2801. Had to update a couple of files that already exploited the missing test. ........
Diffstat (limited to 'test/files/pos/implicits.scala')
-rw-r--r--test/files/pos/implicits.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/implicits.scala b/test/files/pos/implicits.scala
index 4979835e21..14241a2655 100644
--- a/test/files/pos/implicits.scala
+++ b/test/files/pos/implicits.scala
@@ -12,6 +12,17 @@ class C1435 {
}
}
+// #1492
+class C1492 {
+
+ class X
+
+ def foo(x: X => X) {}
+
+ foo ( implicit x => implicitly[X] )
+ foo { implicit x => implicitly[X] }
+}
+
// #1579
object Test1579 {
class Column