Skip to content

Conversation

hfhbd
Copy link
Contributor

@hfhbd hfhbd commented Feb 28, 2024

  • docs/changelog.md has been updated if applicable.

At the moment, it is not possible to import a member without a package. While you should use a package as a good code style, kotlinpoet should not enforce it and should not generate non compiling code due missing imports.

@hfhbd
Copy link
Contributor Author

hfhbd commented Feb 28, 2024

Hm, I want to import a top level function and I used MemberName, which failed due the empty import when compiling. Now I use ClassName and it does work, but the name is strange for top-level functions.

Co-authored-by: Jake Wharton <github@jakewharton.com>
@Egorand
Copy link
Collaborator

Egorand commented Feb 28, 2024

Thanks @hfhbd! Please sign our CLA so we can merge your PR.

@hfhbd
Copy link
Contributor Author

hfhbd commented Feb 28, 2024

Done

@Egorand Egorand merged commit 83a73d2 into square:main Feb 28, 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

Successfully merging this pull request may close these issues.

3 participants