aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-12-12 09:42:29 +0100
committerMartin Odersky <odersky@gmail.com>2016-12-12 09:42:29 +0100
commit1c03d45b1649bb8307c09ebfd2bcb3b9efe50dad (patch)
tree589cd0abd8272b2340965b70c4e17c0ed45b4b51 /tests/pos
parent740ccf85dbb67e01b9ff27f26542ecf95e874a13 (diff)
downloaddotty-1c03d45b1649bb8307c09ebfd2bcb3b9efe50dad.tar.gz
dotty-1c03d45b1649bb8307c09ebfd2bcb3b9efe50dad.tar.bz2
dotty-1c03d45b1649bb8307c09ebfd2bcb3b9efe50dad.zip
Fix #1784: allow to omit types for local implicit vals
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/implicits.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/pos/implicits.scala b/tests/pos/implicits.scala
index 1a3e0b4da..feb48771f 100644
--- a/tests/pos/implicits.scala
+++ b/tests/pos/implicits.scala
@@ -6,4 +6,9 @@ object Test {
val x: X = Byte.MinValue
+ def foo() = {
+ implicit val x = "abc"
+ implicitly[String]
+ }
+
}