// PS:43, psn > a15 > 160
// Scala type inference cannot infer the return type of recursive
// function
// @tailrec Annotation can be used to check tail-call optimization
scala> val no:Int = 0; no: Int = 0 scala> val no2:Float = 0; val no3:Double = 0; no2: Float = 0.0 no3: Double = 0.0
scala> def fn1() =
| println("Multiline expression using equal to")
fn1: ()Unit
scala>
| def fn2() = {
| println("Multiline expression using Curly brace")
| }
fn2: ()Unit
scala> def fn3(arg1: Int,
| arg2: Float) =
| println("This is " +
| "another example")
fn3: (arg1: Int, arg2: Float)Unit