Closed tadeuzagallo closed 8 years ago
Right now it just replaces let.lhs with let.rhs, which means that
let.lhs
let.rhs
let foo = expensive() { print(foo) print(foo) }
will invoke expensive twice.
expensive
Possible test case:
let.ceos:
let.ceos
expensive(): String { print("expensive") "cheap" } let cheap = expensive() { print(cheap) print(cheap) }
let.out:
let.out
expensive out out
Right now it just replaces
let.lhs
withlet.rhs
, which means thatwill invoke
expensive
twice.Possible test case:
let.ceos
:let.out
: