You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second commit (cedd6ef) removes the Composable annotation from Foo. Running prints:
isTypeAlias(true) - Foo
The third commit (63e6de2) adds back the Composable annotation to Foo, but moves Foo and FooHolder into the app module. Running prints:
isTypeAlias(true) - Foo
This happens with both KSP1 and KSP2.
There is a separate branch called 1.9.24 (which branches off of the first "broken" commit) that uses Kotlin 1.9.24. Running prints:
isTypeAlias(true) - Foo
It's unclear to me if that's because of something that was introduced in KSP 2.0.0-1.0.21 or because the Compose compiler changed to org.jetbrains.kotlin.plugin.compose (or both).
The text was updated successfully, but these errors were encountered:
There are 3 commits in this sample project.
The first commit (
f451dc8
) has a typealias that is aComposable
function infoo/src/main/java/com/example/foo/Foo.kt
FooHolder
is referenced inapp/src/main/java/com/example/myapplication.MainActivity.kt
The KSP processor looks at the primary constructor of
FooHolder
and prints out whether it is a typealias, and what the type is:In this case running
./gradlew assembleDebug
prints:The second commit (
cedd6ef
) removes theComposable
annotation fromFoo
. Running prints:The third commit (
63e6de2
) adds back theComposable
annotation toFoo
, but movesFoo
andFooHolder
into theapp
module. Running prints:This happens with both KSP1 and KSP2.
There is a separate branch called
1.9.24
(which branches off of the first "broken" commit) that uses Kotlin 1.9.24. Running prints:It's unclear to me if that's because of something that was introduced in KSP
2.0.0-1.0.21
or because the Compose compiler changed toorg.jetbrains.kotlin.plugin.compose
(or both).The text was updated successfully, but these errors were encountered: