Skip to content

Commit 72a71e4

Browse files
CXwudiclaude
andcommitted
🔧 fix: add @ConsistentCopyVisibility to MainNavState
Resolves Kotlin warning about data class copy() visibility by opting into consistent copy visibility behavior where copy() method has same visibility as constructor (private). 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent ca3b928 commit 72a71e4

File tree

1 file changed

+1
-0
lines changed
  • conduit-frontend/frontend-decompose-logic/src/commonMain/kotlin/mikufan/cx/conduit/frontend/logic/component/main

1 file changed

+1
-0
lines changed

conduit-frontend/frontend-decompose-logic/src/commonMain/kotlin/mikufan/cx/conduit/frontend/logic/component/main/MainNav.model.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package mikufan.cx.conduit.frontend.logic.component.main
22

3+
@ConsistentCopyVisibility
34
data class MainNavState private constructor(
45
val menuItems: List<MainNavMenuItem>,
56
/**

0 commit comments

Comments
 (0)