Cant overload funtion with diffenre paramenters count

Originator:konstantin.koval1
Number:rdar://20070638 Date Originated:06-Mar-2015 05:23 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-beta 3 (6D532l)
Classification:Feature (New) Reproducible:Always
 
Summary:
Make a class with method and a function with the same name but with different parameters.
When calling this function from a class it trying to call a method. 
It shows compile error.

Code:

class A
{
    func test() -> Int {
        return test(10)
    }
}

func test(x: Int) -> Int {
    return x + 1
}

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!