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

Work around KT-52315 #1248

Merged
merged 3 commits into from May 12, 2022
Merged

Work around KT-52315 #1248

merged 3 commits into from May 12, 2022

Conversation

ephemient
Copy link
Contributor

https://youtrack.jetbrains.com/issue/KT-52315

header and impl are deprecated and do not behave as modifier
keywords anymore... except in this specific case, seemingly.

https://youtrack.jetbrains.com/issue/KT-52315

`header` and `impl` are deprecated and do not behave as modifier
keywords anymore... except in this specific case, seemingly.
@Egorand
Copy link
Collaborator

Egorand commented May 9, 2022

Thoughts on just adding these two to KModifier until the KT issue is resolved, instead of special-casing them in code?

@JakeWharton
Copy link
Member

That would make them needlessly escaped everywhere and available to use as a modifier when calling APIs despite not actually being modifiers.

@ephemient
Copy link
Contributor Author

I could add them to Util.kt KEYWORDS only; they'll end up unnecessarily quoted everywhere, but without allowing emitting them as modifiers. Which approach sounds better?

Copy link
Collaborator

@Egorand Egorand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, KEYWORDS is what I actually wanted to say. I like this solution better, @JakeWharton - not merging for now if you have other thoughts.

Co-authored-by: Egor Andreevich <github@egorand.dev>
@JakeWharton
Copy link
Member

Don't have a strong opinion. I was fine with the localized workaround for the sole place where the syntax was broken.

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 this pull request may close these issues.

None yet

3 participants