aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-12-03 13:52:48 +0100
committerMartin Odersky <odersky@gmail.com>2016-12-17 18:34:27 +0100
commitad7edc7bd8af963b768afdc50b7038a8daa47ccb (patch)
treec4f437115a3e898f854a9977a7c4b1cf1c1bf19b /tests
parentfd2c24c3159cefa583889a176f31d1e2325fe7e6 (diff)
downloaddotty-ad7edc7bd8af963b768afdc50b7038a8daa47ccb.tar.gz
dotty-ad7edc7bd8af963b768afdc50b7038a8daa47ccb.tar.bz2
dotty-ad7edc7bd8af963b768afdc50b7038a8daa47ccb.zip
Always insert apply for expressions of implicit function type
Diffstat (limited to 'tests')
-rw-r--r--tests/pos/implicitFuns.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pos/implicitFuns.scala b/tests/pos/implicitFuns.scala
index e62682546..edb2434c9 100644
--- a/tests/pos/implicitFuns.scala
+++ b/tests/pos/implicitFuns.scala
@@ -19,10 +19,16 @@ object Test2 {
val yy: (String, Int) => Any = xx
+ implicit val world: String = "world!"
+
val b = x("hello")
val b1: Boolean = b
+ val bi = x
+
+ val bi1: Boolean = bi
+
val c = xx("hh", 22)
val c1: Int = c