This Swift `function`:

```
func myfakefunc(myfakeParameter: Int) ->Int {
  return myfakeParameter
}

var itWorks: Int = myfakefunc(1)
println(itWorks)

```

won't build in an **xCode** project because `'(Int) ->Int' is not convertible to 'Int'` (error on line 5),

the same code in playground returns no error.

Why?