Xcode-beta (7A152u): Overloading with throws should be possible

Originator:owensd
Number:rdar://21780033 Date Originated:10-Jul-2015 11:53 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-beta (7A152u)
Classification:Other Bug Reproducible:Always
 
It should be possible to declare two functions that only differ in signature by a “throws”.

    func f() -> Int {
        return 1
    }

    func f() throws -> Int {
        return 2
    }

    f()
    try f()

It should never be syntactically ambiguous which function is to be called as try is required for any throwing function.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!