Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Compilation faillure on classes without properties #5

Closed
ATizik opened this issue Sep 5, 2019 · 1 comment
Closed

Compilation faillure on classes without properties #5

ATizik opened this issue Sep 5, 2019 · 1 comment
Assignees

Comments

@ATizik
Copy link

ATizik commented Sep 5, 2019

If you have an annotation on a class or constructor of a class that doesn't have any properties declared inside it's body, method SyntheticResolveExtensionImpl.generateSyntheticProperties fails on this line, because getProperties returns an empty collection:
val isLastProperty = ((thisDescriptor.source as KotlinSourceElement).psi as KtClass).getProperties().last().equals(name)

@Foso Foso self-assigned this Sep 5, 2019
@Foso
Copy link
Owner

Foso commented Sep 5, 2019

Hi @ATizik thank you for reporting this, this is already removed on the latest master branch

@Foso Foso closed this as completed Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants