Literal String vs. `String` in swift
My guess is that in the first example the compiler uses the call to integerValue
as additional information to infer the type (choosing between NSString and a Swift String).
In the second example it probably defaults to a Swift String because it doesn't evaluate multiple lines.