diff options
author | VladimirNik <vladimir.nikolaev9@gmail.com> | 2016-02-22 14:50:35 +0100 |
---|---|---|
committer | VladimirNik <vladimir.nikolaev9@gmail.com> | 2016-03-03 14:06:28 +0100 |
commit | 447256c89148e07dfddcfc065bd5f0946b0ae9aa (patch) | |
tree | fed57dba62faa52d87803c8acfb2db36cd5f8207 /tests/neg/implicitDefs.scala | |
parent | af8fc529dfc6e321f84c036f3ebeaeb62e8e38c4 (diff) | |
download | dotty-447256c89148e07dfddcfc065bd5f0946b0ae9aa.tar.gz dotty-447256c89148e07dfddcfc065bd5f0946b0ae9aa.tar.bz2 dotty-447256c89148e07dfddcfc065bd5f0946b0ae9aa.zip |
Neg tests: remove xerror parameter from tests (compute based on // error)
Diffstat (limited to 'tests/neg/implicitDefs.scala')
-rw-r--r-- | tests/neg/implicitDefs.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/neg/implicitDefs.scala b/tests/neg/implicitDefs.scala index 28ac32656..1489344c8 100644 --- a/tests/neg/implicitDefs.scala +++ b/tests/neg/implicitDefs.scala @@ -5,7 +5,7 @@ import Predef.{any2stringadd => _, StringAdd => _, _} object implicitDefs { - implicit val x = 2 - implicit def y(x: Int) = 3 - implicit def z(a: x.type): String = "" + implicit val x = 2 // error: type of implicit definition needs to be given explicitly + implicit def y(x: Int) = 3 // error: result type of implicit definition needs to be given explicitly + implicit def z(a: x.type): String = "" // error: implicit conversion may not have a parameter of singleton type } |