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

Extension operator functions for standard types #11

Closed
SerVB opened this issue May 1, 2018 · 2 comments
Closed

Extension operator functions for standard types #11

SerVB opened this issue May 1, 2018 · 2 comments

Comments

@SerVB
Copy link
Contributor

SerVB commented May 1, 2018

Hello!

Is it possible to provide some extension operator functions for standard types?
Something like operator fun Int.plus(x: Uint): Int.

Now I have to write i + u.toInt() instead of i + u.

@elect86
Copy link
Collaborator

elect86 commented May 1, 2018

Hi,

sure, anyway, most ones are already there (like here)

You just have to write the import manually... Idea is a little weak here

@SerVB
Copy link
Contributor Author

SerVB commented May 2, 2018

Thank you for the link and for the hint!

@SerVB SerVB closed this as completed May 2, 2018
SerVB referenced this issue in SerVB/pph May 2, 2018
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

2 participants