https://kotlinlang.org logo
#squarelibraries
Title
# squarelibraries
m

Michal Klimczak

07/11/2022, 6:08 PM
Hey, anyone has an idea what might cause this https://github.com/square/kotlinpoet/issues/1304? I could try to contribute but hints about what happens there are much appreciated.
m

Matthias Geisler

07/11/2022, 6:11 PM
Is inheritance in play?
m

Michal Klimczak

07/11/2022, 6:11 PM
No, I don't think so, in what way?
m

Matthias Geisler

07/11/2022, 6:11 PM
However most likely it has something to do with https://github.com/google/ksp/issues/1011
I stumbled over it as well, but only in the context of inheritance.
👍 1
m

Michal Klimczak

07/11/2022, 6:13 PM
To me it happens when resolving a type of a function parameter or function return type. These two for sure but probably not limited to
b

Benoit Quenaudon

07/11/2022, 7:21 PM
That’d be super helpful to have a failing test case I think
m

Michal Klimczak

07/12/2022, 5:28 AM
I think I can prepare one
b

Benoit Quenaudon

07/12/2022, 1:18 PM
What do you think @egorand?
m

Matthias Geisler

07/12/2022, 1:22 PM
@Michal Klimczak in which Kotlin Version you experience this?
m

Michal Klimczak

07/12/2022, 1:33 PM
1.7.10 (the test repro above is in the latest kotlinpoet), 1.7.0 and 1.6.21
m

Matthias Geisler

07/12/2022, 2:22 PM
Your are absolutely right!
I think I located the cause
b

Benoit Quenaudon

07/12/2022, 2:31 PM
Feel free to open the PR if you have both a test and the fix
even just a test is good
m

Michal Klimczak

07/12/2022, 2:32 PM
Just the failing test, sure, will make made a pr out of that
m

Matthias Geisler

07/12/2022, 2:33 PM
@Michal Klimczak you mind if take your test?
m

Michal Klimczak

07/12/2022, 3:06 PM
not at all, be my guest 🙂