diff options
author | Vlad Ureche <vlad.ureche@gmail.com> | 2012-04-14 12:27:55 +0200 |
---|---|---|
committer | Vlad Ureche <vlad.ureche@gmail.com> | 2012-04-14 12:27:55 +0200 |
commit | 95ad0bbddb09f1177cf8cd6f0e8ef2f7135bf4ae (patch) | |
tree | aba57e721049cb455aa4134674047f0eeb15ef77 /test/scaladoc/resources/implicits-base-res.scala | |
parent | 651f2219b325c1a4cf586da4cae58e60caec0860 (diff) | |
download | scala-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.scala | 2 |
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) |