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

Fix compilation error when using typealias #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

arekolek
Copy link

@arekolek arekolek commented Mar 7, 2024

This fixes #5

parameterClassDeclaration = (resolvedType.declaration as KSClassDeclaration),
)
return when (val declaration = resolvedType.declaration) {
is KSTypeAlias -> mapParameter(parameterValue, declaration.type.resolve())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thank you for your contribution! Can we also add a test for this case?

Copy link
Author

Choose a reason for hiding this comment

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

Test added

@arekolek arekolek requested a review from St4B March 29, 2024 19:12
@arekolek
Copy link
Author

I have quite a few more fixes in stock, and I'm wondering if I should aim to use this library and push those fixes upstream, or should I just maintain my own fork of the library

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.

Can't use typealias in classes annotated with Fixture
2 participants