Skip to content

[KSP2] Class literal annotation default values resolve to error types #1910

@FooIbar

Description

@FooIbar

Similar to #1842

annotation class Destination<T: Annotation>(
    val route: String = COMPOSABLE_NAME,
    val start: Boolean = false,
    val navArgs: KClass<*> = Nothing::class,
    val deepLinks: Array<DeepLink> = [],
    val style: KClass<out DestinationStyle> = DestinationStyle.Default::class,
    val wrappers: Array<KClass<out DestinationWrapper>> = [],
    val visibility: CodeGenVisibility = CodeGenVisibility.PUBLIC
)

navArgs is correctly resolved in 1.0.21, but style still fails.

Repro: https://github.com/FooIbar/compose-destinations/tree/repro

./gradlew sample:kspDebugKotlin

Metadata

Metadata

Assignees

Labels

P1major features or blocking bugsbugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions