-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
"to" is an operator in the Kotlin stdlib #7
Comments
It doesn't feel like a big issue. You'd have to go out of your way to use that method instead of the one on I can't think of another name for the method that is similarly short either. Do you have a suggestion? |
Maybe I'm missing something obvious, but how would I use the |
This is working fine for me (using Kotlin 1.3.61): EmailIntentBuilder.from(requireActivity())
.to("[email protected]")
.cc("[email protected]")
.bcc("[email protected]")
.subject("Message from an app")
.body("Some text here")
.start() |
It works fine with a literal, but since kotlin's |
oddly enough, it's working for me on MacOS (Android Studio), but I can't get it to compile on LInux (also Android Studio) |
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/to.html
This makes it difficult to use the
to
method from Kotlin because Kotlin interprets it as the stdlib operator.The text was updated successfully, but these errors were encountered: