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

Kotlin rangeUntil ..< Syntax Throws Error #424

Closed
austinarbor-wk opened this issue Oct 3, 2023 · 1 comment
Closed

Kotlin rangeUntil ..< Syntax Throws Error #424

austinarbor-wk opened this issue Oct 3, 2023 · 1 comment

Comments

@austinarbor-wk
Copy link

Using the abbreviated rangeUntil syntax ..< throws an error during formatting

for (retries in 0 ..< MAX_RETRIES) {
  ...
}
Step 'ktfmt' found problem in 'src/test/kotlin/com/example/MyTest.kt':
112:29: error: Expecting an element
com.facebook.ktfmt.format.ParseError: 112:29: error: Expecting an element
        at com.facebook.ktfmt.format.Parser.throwParseError(Parser.kt:71)
        at com.facebook.ktfmt.format.Parser.parse(Parser.kt:65)
        at com.facebook.ktfmt.format.Formatter.sortedAndDistinctImports(Formatter.kt:143)
        at com.facebook.ktfmt.format.Formatter.format(Formatter.kt:90)
@erikghonyan
Copy link

#362

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

Successfully merging a pull request may close this issue.

2 participants