Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functions with default values causes "Overload resolution ambiguity" #11

Open
audkar opened this issue Oct 13, 2020 · 0 comments
Open

Comments

@audkar
Copy link

audkar commented Oct 13, 2020

A lot of functions have illegal overloads when default value parameter is used. e.g. assert.assert package:

external fun equal(actual: Any, expected: Any, message: String = definedExternally)
external fun equal(actual: Any, expected: Any, message: Error = definedExternally)
<...>

All functions with default values are unusable in this module.

Using any of them causes:

e: <...>: Overload resolution ambiguity: 
public external fun equal(actual: Any, expected: Any, message: Error = ...): Unit defined in assert.assert
public external fun equal(actual: Any, expected: Any, message: String = ...): Unit defined in assert.assert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant