summaryrefslogtreecommitdiff
path: root/test/scaladoc/resources/implicits-base-res.scala
diff options
context:
space:
mode:
authorVlad Ureche <vlad.ureche@gmail.com>2012-04-14 12:27:55 +0200
committerVlad Ureche <vlad.ureche@gmail.com>2012-04-14 12:27:55 +0200
commit95ad0bbddb09f1177cf8cd6f0e8ef2f7135bf4ae (patch)
treeaba57e721049cb455aa4134674047f0eeb15ef77 /test/scaladoc/resources/implicits-base-res.scala
parent651f2219b325c1a4cf586da4cae58e60caec0860 (diff)
downloadscala-95ad0bbddb09f1177cf8cd6f0e8ef2f7135bf4ae.tar.gz
scala-95ad0bbddb09f1177cf8cd6f0e8ef2f7135bf4ae.tar.bz2
scala-95ad0bbddb09f1177cf8cd6f0e8ef2f7135bf4ae.zip
Adapted implicits testsuite for SIP18
Diffstat (limited to 'test/scaladoc/resources/implicits-base-res.scala')
-rw-r--r--test/scaladoc/resources/implicits-base-res.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/scaladoc/resources/implicits-base-res.scala b/test/scaladoc/resources/implicits-base-res.scala
index db7ca4fa51..ce86ba8918 100644
--- a/test/scaladoc/resources/implicits-base-res.scala
+++ b/test/scaladoc/resources/implicits-base-res.scala
@@ -28,6 +28,8 @@ class A[T] {
}
/** Companion object with implicit transformations */
object A {
+ import language.implicitConversions // according to SIP18
+
implicit def pimpA0[V](a: A[V]) = new PimpedA(a)
implicit def pimpA1[ZBUR: Numeric](a: A[ZBUR]) = new NumericA[ZBUR](a)
implicit def pimpA2(a: A[Int]) = new IntA(a)