scala> def f(x: Int): Int = {
| if(x == 0)
| x
| else
| 55 // I'd prefer a warning here since the if/else falls into the "a pure expression in statement position ..." warning class
| 42
| }
f: (x: Int)Int
scala> f(100)
res0: Int = 42
--
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.