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

Support experimental OpenEndRang<T> #362

Closed
benkeil opened this issue Oct 20, 2022 · 6 comments
Closed

Support experimental OpenEndRang<T> #362

benkeil opened this issue Oct 20, 2022 · 6 comments

Comments

@benkeil
Copy link

benkeil commented Oct 20, 2022

When I use the new open end ranges

import my.package.extensions.rangeUntil

(nextRuntime ..< LocalDate.now())

ktfmt removes the import because it thinks it is unused.

@deepkrg17
Copy link

Also ktfmt gives error when I use rangeUntil operator.

error: Expecting an element

@ZacSweers
Copy link

I think the right title for this may be to support the rangeUntil operator

@benkeil
Copy link
Author

benkeil commented Apr 1, 2023

There are more problems with not yet stable features like ContextReceivers.

@ZacSweers
Copy link

This will be stable in Kotlin 1.9.0, which is currently in beta

@sureshg
Copy link

sureshg commented Jul 16, 2023

Kotlin 1.9.0 is already released with stable ..< operator for open-ended ranges . Are there any plans to support 1.9.x soon?

@hick209
Copy link
Contributor

hick209 commented Mar 25, 2024

Closed with #433

Should be available on the next release

@hick209 hick209 closed this as completed Mar 25, 2024
@hick209 hick209 reopened this Mar 25, 2024
@hick209 hick209 closed this as completed Mar 25, 2024
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

5 participants