--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Welcome to Scala version 2.11.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_45).scala> def m(implicit i:Int = 0) = println(i)
...m: (implicit i: Int)Unitscala> implicit val iv = 10
scala> m()
0
scala> m
0
iv: Int = 10This sort of breaks the "principle of least surprise".
scala> m
10
scala> m()
0