diff options
author | Martin Odersky <odersky@gmail.com> | 2016-12-15 18:14:31 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-12-17 18:34:27 +0100 |
commit | 740bd425d562e5e9d1744361553054413775cb73 (patch) | |
tree | 37c8ebc3415ebe25dd909c5dc6f7ea6d806d52e9 /tests/run/implicitFuns.scala | |
parent | a6ae1a7b5b62b1b4e8b702c640305c3ae6d7da13 (diff) | |
download | dotty-740bd425d562e5e9d1744361553054413775cb73.tar.gz dotty-740bd425d562e5e9d1744361553054413775cb73.tar.bz2 dotty-740bd425d562e5e9d1744361553054413775cb73.zip |
Drop Override flag for non-overriding direct methods
Also, integrate Jason's test case with the conditional.
Diffstat (limited to 'tests/run/implicitFuns.scala')
-rw-r--r-- | tests/run/implicitFuns.scala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/run/implicitFuns.scala b/tests/run/implicitFuns.scala index 1bc5a2f6b..496fba0d3 100644 --- a/tests/run/implicitFuns.scala +++ b/tests/run/implicitFuns.scala @@ -1,5 +1,5 @@ object Test { - def main(args: Array[String]) = { + def main(args: Array[String]): Unit = { implicit val world: String = "world!" @@ -53,6 +53,10 @@ object Test { val c1: Int = c Contextual.main(args) + + def foo(s: String): Stringly[Int] = 42 + + (if ("".isEmpty) foo("") else foo("")).apply("") } } |