IssueRaiser

Can't reference a specific function overload

Consider this scenario: I have two or more methods with the same name but different parameters, just simple function overloads. Then I can't reference one of them explicitly in the documentation. For example: ``` kotlin class Sample { /** * If calling this, don't call [fancy] or [fancy] before [build]. */ fun fancy(value: String) { ... } fun fancy(value: Int) { ... } fun fancy(value: String, extra: String) { ... } fun build(): Something { ... } } ``` Something like `[fancy(Int)]` and `[fancy(String, String)]` would be nice in the scenario, to separate the reference by parameter types and thus being able to reference one specific overload.

Posted by ghost on May 26, 2016, 9:51 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.5,000 issues0 comments

github (Other)

Can't reference a specific function overload

ghostMay 26, 2016, 9:51 AM

Consider this scenario: I have two or more methods with the same name but different parameters, just simple function overloads. Then I can't reference one of them explicitly in the documentation. For example: ``` kotlin class Sample { /** * If calling this, don't call [fancy] or [fancy] before [build]. */ fun fancy(value: String) { ... } fun fancy(value: Int) { ... } fun fancy(value: String, extra: String) { ... } fun build(): Something { ... } } ``` Something like `[fancy(Int)]` and `[fancy(String, String)]` would be nice in the scenario, to separate the reference by parameter types and thus being able to reference one specific overload.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue