Updated for Swift beta 7